- Timestamp:
- May 2, 2006, 11:08:45 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/defs/class_id.h
r7461 r7482 149 149 150 150 CL_KILL_TARGET = 0x00105001, 151 151 #warning new classid entry 152 CL_KILL = 0x00105005, //FIXME: Bensch, this is actualy a BaseObject no idea where to put 152 153 153 154 -
trunk/src/lib/graphics/importer/height_map.cc
r7469 r7482 95 95 #define shiftZ this->heightMapReference->shiftZ 96 96 #define normalVectorField this->heightMapReference->normalVectorField 97 97 98 98 99 this->x = this->heightMapReference->offsetX + ( this->heightMapReference->heightMap->h - ((i1 + i2) / 2)) * scaleX; -
trunk/src/story_entities/game_world_data.cc
r7466 r7482 325 325 LoadParam(root, "Music", this, GameWorldData, setSoundTrack); 326 326 327 328 327 LoadParamXML(root, "GameRule", this, GameWorldData, loadGameRule); 329 328 … … 386 385 this->gameRule = dynamic_cast<GameRules*>(created); 387 386 State::setGameRules(this->gameRule); 388 // if there is a valid game rule loaded, breakbecause it is not thought to load multiple game rules387 // if there is a valid game rule loaded, return because it is not thought to load multiple game rules 389 388 return; 390 389 } -
trunk/src/util/Makefile.am
r7461 r7482 15 15 mission_goal.cc\ 16 16 kill_target.cc\ 17 kill.cc \ 17 18 \ 18 19 signal_handler.cc \ … … 38 39 mission_goal.cc\ 39 40 kill_target.h\ 41 kill.h \ 42 \ 40 43 signal_handler.h \ 41 44 \ -
trunk/src/util/game_rules.h
r7461 r7482 16 16 class Player; 17 17 class MissionGoal; 18 class Kill; 18 19 19 20 … … 32 33 inline void addMissionGoal(MissionGoal* missionGoal) { this->missionList.push_back(missionGoal); } 33 34 35 inline void registerKill(const Kill& kill) { /*this->killList.push_back(&kill);*/ } 34 36 35 37 virtual void onPlayerSpawn() {} … … 50 52 Player* localPlayer; //!< reference to the local player 51 53 std::vector<MissionGoal*> missionList; //!< list of mission goals 54 55 const std::vector<Kill*> killList; //!< list of kills in the world 52 56 }; 53 57 -
trunk/src/world_entities/playable.cc
r7412 r7482 35 35 36 36 #include "effects/explosion.h" 37 #include "kill.cc" 37 38 38 39 #include "shell_command.h" … … 366 367 { 367 368 this->die(); 369 370 if( State::getGameRules() != NULL) 371 State::getGameRules()->registerKill(Kill(entity, this)); 368 372 } 369 373 }
Note: See TracChangeset
for help on using the changeset viewer.