Changeset 5603 in orxonox.OLD for branches/world_entities/src
- Timestamp:
- Nov 16, 2005, 3:19:47 PM (19 years ago)
- Location:
- branches/world_entities/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/defs/class_id.h
r5527 r5603 141 141 CL_ROCKET = 0x00000241, 142 142 CL_LASER = 0x00000242, 143 CL_BOMB = 0x00000243, 143 144 144 145 -
branches/world_entities/src/world_entities/weapons/bomb.cc
r5590 r5603 15 15 16 16 #include "bomb.h" 17 #include "glincl.h" 18 #include "model.h" 19 #include "fast_factory.h" 17 20 18 21 using namespace std; 19 22 23 CREATE_FAST_FACTORY_STATIC(Bomb, CL_BOMB); 20 24 21 25 /** … … 46 50 void Bomb::init() 47 51 { 48 this->setClassID(CL_ PROTO_WORLD_ENTITY, "Bomb");52 this->setClassID(CL_BOMB, "Bomb"); 49 53 50 54 /** … … 63 67 { 64 68 // all the clases this Entity is directly derived from must be called in this way, to load all settings. 65 static_cast<WorldEntity*>(this)->loadParam (root);69 static_cast<WorldEntity*>(this)->loadParams(root); 66 70 67 71 … … 76 80 * @param time the Time to step 77 81 */ 78 Bomb::tick(float time)82 void Bomb::tick(float time) 79 83 { 80 84 … … 112 116 113 117 } 118 119 void Bomb::activate() 120 { 121 122 } 123 124 void Bomb::deactivate() 125 { 126 127 } -
branches/world_entities/src/world_entities/weapons/bomb.h
r5593 r5603 4 4 */ 5 5 6 #ifndef BOMB7 #define BOMB6 #ifndef _BOMB_H 7 #define _BOMB_H 8 8 9 #include "bomb.h" 9 #include "projectile.h" 10 class FastFactory; 10 11 11 12 //! A Class to ... … … 20 21 void init(); 21 22 22 virtual void postSpawn ();23 virtual void leftWorld ();23 // virtual void postSpawn (); 24 // virtual void leftWorld (); 24 25 25 26 … … 27 28 virtual void tick(float time); 28 29 virtual void collidesWith (WorldEntity* entity, const Vector& location); 30 virtual void activate(); 31 virtual void deactivate(); 29 32 30 33 private: 34 static FastFactory* fastFactory; 31 35 32 36 };
Note: See TracChangeset
for help on using the changeset viewer.