Changeset 9087 in orxonox.OLD for branches/presentation/src/world_entities/npcs
- Timestamp:
- Jul 4, 2006, 1:57:44 AM (18 years ago)
- Location:
- branches/presentation/src/world_entities/npcs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/door.cc
r9003 r9087 45 45 46 46 47 Door::Door ()48 {49 this->init();50 }51 52 53 47 Door::Door(const TiXmlElement* root) 54 48 { … … 56 50 this->setClassID(CL_DOOR, "Door"); 57 51 this->scale = 1.0f; 52 this->actionRadius = 1.0; 58 53 59 54 if( root != NULL) … … 62 57 this->toList(OM_COMMON); 63 58 this->bLocked = false; 59 this->bOpen = false; 64 60 65 61 this->loadMD2Texture("maps/doors.jpg"); -
branches/presentation/src/world_entities/npcs/door.h
r9003 r9087 22 22 { 23 23 public: 24 Door (); 25 Door(const TiXmlElement* root); 24 Door(const TiXmlElement* root = NULL); 26 25 virtual ~Door (); 27 26 … … 43 42 44 43 private: 44 void init(); 45 45 bool checkOpen(); 46 46 void setAnimation(int animNum, int playbackMode = 0); -
branches/presentation/src/world_entities/npcs/generic_npc.cc
r9066 r9087 84 84 this->toList(OM_GROUP_00); 85 85 86 if (this->soundBuffer != NULL)87 ResourceManager::getInstance()->unload(this->soundBuffer);88 86 this->soundBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/rain.wav", WAV); 89 87
Note: See TracChangeset
for help on using the changeset viewer.