Changeset 7092 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Feb 7, 2006, 5:27:54 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/creatures/md2_creature.h
r6804 r7092 24 24 25 25 virtual void loadParams(const TiXmlElement* root); 26 virtual void setAbsDirPlay(const Quaternion& rot) {/* FIXME */}; 26 27 27 28 virtual void enter(); -
trunk/src/world_entities/playable.cc
r7091 r7092 21 21 #include "player.h" 22 22 #include "state.h" 23 #include "load_param.h" 23 24 24 25 #include "world_entities/projectiles/projectile.h" … … 82 83 } 83 84 85 86 void Playable::loadParams(const TiXmlElement* root) 87 { 88 WorldEntity::loadParams(root); 89 90 LoadParam(root, "abs-dir", this, Playable, setAbsDirPlay); 91 } 84 92 85 93 void Playable::addWeapon(Weapon* weapon, int configID, int slotID) -
trunk/src/world_entities/playable.h
r7072 r7092 28 28 virtual ~Playable(); 29 29 30 virtual void loadParams(const TiXmlElement* root); 30 31 31 32 virtual void die(); … … 61 62 bool needsReadSync(); 62 63 64 65 virtual void setAbsDirPlay(const Quaternion& rot) = 0; 66 void setAbsDirPlay(float angle, float dirX, float dirY, float dirZ) { this->setAbsDirPlay(Quaternion(angle, Vector(dirX, dirY, dirZ))); } 67 63 68 inline void setScore( int score ) { this->score = score; } 64 69 inline int getScore() { return this->score; } -
trunk/src/world_entities/space_ships/helicopter.h
r6947 r7092 22 22 23 23 virtual void loadParams(const TiXmlElement* root); 24 virtual void setAbsDirPlay(const Quaternion& rot){/* FIXME */}; 24 25 25 26 virtual void enter(); -
trunk/src/world_entities/space_ships/hover.h
r7072 r7092 19 19 20 20 virtual void loadParams(const TiXmlElement* root); 21 virtual void setAbsDirPlay(const Quaternion& rot) {/* FIXME */}; 21 22 22 23 virtual void enter(); -
trunk/src/world_entities/space_ships/space_ship.cc
r7087 r7092 248 248 { 249 249 Playable::loadParams(root); 250 251 LoadParam(root, "abs-dir", this, SpaceShip, setRelDir); 252 } 253 254 void SpaceShip::setRelDir(float angle, float axisX, float axisY, float axisZ) 255 { 256 this->mouseDir = Quaternion(angle, Vector(axisX, axisY, axisZ)); 250 } 251 252 void SpaceShip::setAbsDirPlay(const Quaternion& quat) 253 { 254 this->mouseDir = Quaternion(quat); 257 255 } 258 256 -
trunk/src/world_entities/space_ships/space_ship.h
r7085 r7092 27 27 virtual void loadParams(const TiXmlElement* root); 28 28 29 v oid setRelDir(float angle, float axisX, float axisY, float axisZ);29 virtual void setAbsDirPlay(const Quaternion& rot); 30 30 31 31 virtual void enter(); -
trunk/src/world_entities/space_ships/turbine_hover.h
r7001 r7092 23 23 24 24 virtual void loadParams(const TiXmlElement* root); 25 25 virtual void setAbsDirPlay(const Quaternion& rot) {/* FIXME */}; 26 26 virtual void enter(); 27 27 virtual void leave();
Note: See TracChangeset
for help on using the changeset viewer.