00001 #pragma once 00002 00003 #include "person.h" 00004 #include "object.h" 00005 #include "sprite.h" 00006 #include "person.h" 00007 00008 class Bullet : public Object 00009 { 00010 public: 00011 Bullet( Person* shooter, int bulletSpeed, xDirection xDir, yDirection yDir ); 00012 virtual void draw(); 00013 virtual void update(); 00014 virtual void collide( Object* o ); 00015 int getDamage(){ return _damage; }; 00016 00017 protected: 00018 Person* _shooter; 00019 Sprite* _sprite; 00020 00021 int _xVelocity; 00022 int _yVelocity; 00023 int _damage; 00024 xDirection _xDirection; 00025 yDirection _yDirection; 00026 };