C:/Documents and Settings/jegan/Desktop/projectX/Bullet.h

Go to the documentation of this file.
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, int damage = 1, int which = 0 );
00012         virtual Object *copy();
00013         virtual void draw();
00014         virtual void update();
00015         virtual void collide( Object* o );
00016         int getDamage(){ return _damage; };
00017         void setShooter(Person *shooter) {_shooter = shooter;}
00018 
00019 protected:
00020         Person* _shooter;
00021         Sprite* _sprite;
00022 
00023         int _xVelocity;
00024         int _yVelocity;
00025         int _damage;
00026         xDirection _xDirection;
00027         yDirection _yDirection;
00028 };

Generated on Fri May 5 00:20:18 2006 for ProjectX by  doxygen 1.4.6-NO