Changeset 5880 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.h
- Timestamp:
- Dec 3, 2005, 12:55:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.h
r5878 r5880 4 4 */ 5 5 6 #ifndef _ PLAYER_H7 #define _ PLAYER_H6 #ifndef _SPACE_SHIP_H 7 #define _SPACE_SHIP_H 8 8 9 9 #include "playable.h" … … 15 15 class SpaceShip : public Playable 16 16 { 17 17 18 18 public: 19 19 20 20 SpaceShip(); 21 21 SpaceShip(const char* fileName); 22 22 SpaceShip(const TiXmlElement* root); 23 23 virtual ~SpaceShip(); 24 24 25 25 void init(); 26 26 void loadParams(const TiXmlElement* root); 27 27 28 28 void addWeapon(Weapon* weapon ); 29 29 void removeWeapon(Weapon* weapon); 30 30 31 31 virtual void postSpawn(); 32 32 virtual void leftWorld(); 33 33 34 34 virtual void collidesWith(WorldEntity* entity, const Vector& location); 35 35 virtual void tick(float time); 36 36 virtual void draw() const; 37 37 38 v oid process(const Event &event);39 40 41 38 virtual void process(const Event &event); 39 40 41 42 42 private: 43 43 44 44 void move(float time); 45 45 void weaponAction(); … … 47 47 // !! temporary !! 48 48 void ADDWEAPON(); 49 49 50 50 bool bUp; //!< up button pressed. 51 51 bool bDown; //!< down button pressed. … … 62 62 }; 63 63 64 #endif /* _ PLAYABLE_H */64 #endif /* _SPACE_SHIPS_H */
Note: See TracChangeset
for help on using the changeset viewer.