Changeset 9709 in orxonox.OLD for branches/new_class_id/src/world_entities/environments
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (18 years ago)
- Location:
- branches/new_class_id/src/world_entities/environments
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/environments/building.cc
r9406 r9709 23 23 24 24 25 26 CREATE_FACTORY(Building, CL_BUILDING); 25 #include "class_id.h" 26 NewObjectListDefinitionID(Building, CL_BUILDING); 27 CREATE_FACTORY(Building); 27 28 28 29 /** … … 31 32 Building::Building(const TiXmlElement* root) 32 33 { 33 this-> setClassID(CL_BUILDING, "Building");34 this->registerObject(this, Building::_objectList); 34 35 this->toList(OM_ENVIRON_NOTICK); 35 36 -
branches/new_class_id/src/world_entities/environments/building.h
r7041 r9709 15 15 class Building : public WorldEntity 16 16 { 17 public: 17 NewObjectListDeclaration(Building); 18 public: 18 19 Building(const TiXmlElement* root); 19 20 -
branches/new_class_id/src/world_entities/environments/mapped_water.cc
r9406 r9709 25 25 #include "script_class.h" 26 26 27 CREATE_FACTORY(MappedWater, CL_MAPPED_WATER); 27 #include "class_id.h" 28 NewObjectListDefinitionID(MappedWater, CL_MAPPED_WATER); 29 CREATE_FACTORY(MappedWater); 28 30 29 31 SHELL_COMMAND(gui, MappedWater, toggleGui); 30 32 SHELL_COMMAND(output, MappedWater, saveParams); 31 33 32 CREATE_SCRIPTABLE_CLASS(MappedWater, CL_MAPPED_WATER,34 CREATE_SCRIPTABLE_CLASS(MappedWater, MappedWater::classID(), 33 35 addMethod("waterUV", ExecutorLua2<MappedWater, float, float>(&MappedWater::fadeWaterUV)) 34 36 ->addMethod("waterFlow", ExecutorLua2<MappedWater, float, float>(&MappedWater::fadeWaterFlow)) … … 47 49 MappedWater::MappedWater(const TiXmlElement* root) 48 50 { 49 this-> setClassID(CL_MAPPED_WATER, "MappedWater");51 this->registerObject(this, MappedWater::_objectList); 50 52 this->toList(OM_ENVIRON); 51 53 -
branches/new_class_id/src/world_entities/environments/mapped_water.h
r9021 r9709 35 35 class MappedWater : public WorldEntity 36 36 { 37 NewObjectListDeclaration(MappedWater); 37 38 public: 38 39 MappedWater(const TiXmlElement* root = NULL); -
branches/new_class_id/src/world_entities/environments/model_entity.cc
r9656 r9709 23 23 24 24 25 26 CREATE_FACTORY(ModelEntity, CL_MODEL_ENTITY); 25 #include "class_id.h" 26 NewObjectListDefinitionID(ModelEntity, CL_MODEL_ENTITY); 27 CREATE_FACTORY(ModelEntity); 27 28 28 29 /** … … 31 32 ModelEntity::ModelEntity(const TiXmlElement* root) 32 33 { 33 this-> setClassID(CL_MODEL_ENTITY, "ModelEntity");34 this->registerObject(this, ModelEntity::_objectList); 34 35 this->toList(OM_ENVIRON); 35 36 -
branches/new_class_id/src/world_entities/environments/model_entity.h
r7048 r9709 15 15 class ModelEntity : public WorldEntity 16 16 { 17 NewObjectListDeclaration(ModelEntity); 17 18 public: 18 19 ModelEntity(const TiXmlElement* root); -
branches/new_class_id/src/world_entities/environments/water.cc
r9656 r9709 33 33 34 34 35 36 CREATE_FACTORY(Water, CL_WATER); 35 #include "class_id.h" 36 NewObjectListDefinitionID(Water, CL_WATER); 37 CREATE_FACTORY(Water); 37 38 38 39 39 40 Water::Water(const TiXmlElement* root) 40 41 { 41 this-> setClassID(CL_WATER, "Water");42 this->registerObject(this, Water::_objectList); 42 43 this->toList(OM_ENVIRON); 43 44 … … 217 218 void Water::tick(float dt) 218 219 { 219 ObjectManager::EntityList entityList = State::getObjectManager()->get ObjectList(OM_GROUP_01_PROJ);220 ObjectManager::EntityList entityList = State::getObjectManager()->getEntityList(OM_GROUP_01_PROJ); 220 221 ObjectManager::EntityList::iterator entity = entityList.begin(); 221 222 while (entity != entityList.end()) -
branches/new_class_id/src/world_entities/environments/water.h
r7954 r9709 22 22 class Water : public WorldEntity 23 23 { 24 public: 24 NewObjectListDeclaration(Water); 25 public: 25 26 Water(const TiXmlElement* root = NULL); 26 27 virtual ~Water(); … … 38 39 void draw() const; 39 40 void tick(float dt); 40 41 41 42 virtual void varChangeHandler( std::list<int> & id ); 42 43 … … 52 53 Material waterMaterial; 53 54 Shader* waterShader; 54 55 55 56 float height; //!< The hight of the Water 56 57 int height_handle; //!< Handle to notify about changes of height
Note: See TracChangeset
for help on using the changeset viewer.