Changeset 8874 in orxonox.OLD for branches/single_player_map/src
- Timestamp:
- Jun 28, 2006, 5:08:38 PM (18 years ago)
- Location:
- branches/single_player_map/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/WorldEntities.am
r8873 r8874 16 16 world_entities/character_attributes.cc \ 17 17 world_entities/test_entity.cc \ 18 world_entities/door.cc \ 18 19 world_entities/planet.cc \ 19 20 world_entities/bsp_entity.cc \ … … 75 76 character_attributes.h \ 76 77 test_entity.h \ 78 door.h \ 77 79 planet.h \ 78 80 bsp_entity.h \ -
branches/single_player_map/src/world_entities/door.cc
r8872 r8874 18 18 19 19 20 #include "executor/executor.h"21 20 #include "util/loading/factory.h" 22 21 #include "util/loading/load_param.h" 23 22 24 #include "kill.h"25 #include "game_rules.h"26 27 #include "test_entity.h"28 29 23 30 24 #include "interactive_model.h" 31 #include "md2/md2Model.h"32 25 33 #include "state.h" 26 #include "door.h" 27 #include "class_list.h" 28 34 29 35 30 using namespace std; … … 42 37 { 43 38 this->init(); 44 this->md2Model = new MD2Model("models/droidika.md2", "models/droideka.pcx");45 39 } 46 40 … … 63 57 this->setClassID(CL_DOOR, "Door"); 64 58 this->toList(OM_COMMON); 65 66 this->lastCollided = NULL;67 this->bDeath = false;68 59 } 69 60 … … 103 94 * checks if the door is open 104 95 */ 105 voidDoor::checkOpen()96 bool Door::checkOpen() 106 97 { 107 98 99 std::list<BaseObject*>::const_iterator it; 100 const std::list<BaseObject*>* list = ClassList::getList(CL_PLAYABLE); 101 WorldEntity* entity; 108 102 103 if( list == NULL) 104 return false; 105 106 // for all players 107 for( it = list->begin(); it != list->end(); it++) 108 { 109 entity = dynamic_cast<WorldEntity*>(*it); 110 111 } 112 113 114 list = ClassList::getList(CL_GENERIC_NPC); 115 if( list == NULL) 116 return false; 117 for( it = list->begin(); it != list->end(); it++) 118 { 119 120 } 121 122 return false; 109 123 } 110 124 -
branches/single_player_map/src/world_entities/door.h
r8872 r8874 23 23 24 24 private: 25 voidcheckOpen();25 bool checkOpen(); 26 26 27 27 private:
Note: See TracChangeset
for help on using the changeset viewer.