Changeset 5143 in orxonox.OLD
- Timestamp:
- Aug 27, 2005, 12:32:41 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/defs/functor_list.h
r5142 r5143 32 32 #define FUNCTOR_MAX_ARGUMENTS 5 33 33 34 typedef enum ParameterType34 typedef enum 35 35 { 36 36 ParameterNull, … … 43 43 ParameterLong, 44 44 /* ... */ 45 } ;45 } ParameterType; 46 46 47 47 -
trunk/src/lib/event/event.h
r5093 r5143 11 11 12 12 #include "base_object.h" 13 #include "event_def.h"14 13 #include "sdlincl.h" 15 16 14 17 15 //! An abstract event class -
trunk/src/lib/event/event_listener.h
r5039 r5143 1 /*! 1 /*! 2 2 * @file event_listener.h 3 3 * Definition of an event listener base class … … 10 10 #include "base_object.h" 11 11 #include "event.h" 12 #include "event_def.h"13 14 12 15 13 //! A class for event listener -
trunk/src/lib/physics/physics_interface.h
r5039 r5143 7 7 #define _PHYSICS_INTERFACE_H 8 8 9 #include "base_object.h" 10 9 11 #include "vector.h" 10 #include "base_object.h"11 12 12 13 #ifndef NULL -
trunk/src/util/shell_command.cc
r5142 r5143 48 48 paramCount = FUNCTOR_MAX_ARGUMENTS; 49 49 this->paramCount = paramCount; 50 this->parameters = new ParameterType[paramCount];50 this->parameters = new long[paramCount]; 51 51 52 52 for (unsigned int i = 0; i < paramCount; i++) … … 146 146 commandBegin++; 147 147 if (strncmp (commandBegin, elem->getName(), strlen(elem->getName()))) 148 148 continue; 149 149 objectPointer = ClassList::getList(elem->classID)->firstElement(); 150 150 } 151 151 else 152 152 { 153 while(*commandBegin == ' ') 154 commandBegin++; 155 tIterator<BaseObject>* iterBO = ClassList::getList(elem->classID)->getIterator(); 156 BaseObject* enumBO = iterBO->firstElement(); 157 { 158 if( !strncmp(commandBegin, enumBO->getName(), strlen(enumBO->getName()))) 159 { 160 objectPointer = enumBO; 161 break; 162 } 163 enumBO = iterBO->nextElement(); 164 } 165 delete iterBO; 153 166 167 if (objectPointer == NULL) 168 break; 169 commandBegin = commandBegin + strlen(objectPointer->getName()); 170 while(*commandBegin == ' ') 171 commandBegin++; 154 172 } 155 173 const char* commandEnd = strchr(commandBegin, ' '); 156 174 if (commandEnd == NULL) 157 commandEnd = executionString + strlen(executionString);175 commandEnd = commandBegin + strlen(commandBegin); 158 176 159 177 if (objectPointer != NULL) 178 { 160 179 elem->executeCommand(objectPointer, commandEnd); 161 delete iterator; 162 return true; 180 delete iterator; 181 return true; 182 } 163 183 } 164 184 elem = iterator->nextElement(); -
trunk/src/util/shell_command.h
r5142 r5143 10 10 11 11 #include "helper_functions.h" 12 #include "functor_list.h" 12 13 13 14 #include <stdarg.h> … … 15 16 #define MAX_SHELL_COMMAND_SIZE 16 17 17 #include "functor_list.h"18 18 19 19 … … 94 94 void* functionPointer; //!< The pointeer to the function of the Class (or static pointer if ClassID == CL_NULL ) 95 95 unsigned int paramCount; //!< the count of parameters 96 ParameterType*parameters; //!< Parameters96 long* parameters; //!< Parameters 97 97 bool isSingleton; //!< if the Class is Singleton @todo autocheck 98 98 -
trunk/src/world_entities/environment.cc
r5054 r5143 18 18 19 19 #include "environment.h" 20 #include "stdincl.h" 21 #include "world_entity.h" 20 21 #include "resource_manager.h" 22 22 23 #include "vector.h" 23 24 #include "objModel.h" -
trunk/src/world_entities/player.cc
r5064 r5143 18 18 #include "player.h" 19 19 20 #include "shell_command.h" 20 21 #include "track_manager.h" 21 22 #include "objModel.h" … … 114 115 115 116 117 ShellCommand<Player>::registerCommand("init", CL_PLAYER, &Player::init); 116 118 //this->weaponMan->addWeapon(turret, 3, 0); 117 119 -
trunk/src/world_entities/terrain.cc
r4998 r5143 23 23 #include "factory.h" 24 24 #include "load_param.h" 25 25 #include "resource_manager.h" 26 26 #include "spatial_separation.h" 27 27 -
trunk/src/world_entities/weapons/weapon.cc
r5041 r5143 23 23 #include "projectile.h" 24 24 25 #include "resource_manager.h" 25 26 #include "class_list.h" 26 27 #include "load_param.h" -
trunk/src/world_entities/world_entity.cc
r5066 r5143 19 19 20 20 #include "world_entity.h" 21 22 #include "resource_manager.h" 23 #include "load_param.h" 21 24 #include "list.h" 22 25 #include "vector.h" -
trunk/src/world_entities/world_entity.h
r5061 r5143 8 8 9 9 #include "p_node.h" 10 #include "resource_manager.h" 10 11 11 #include "factory.h" 12 #include "load_param.h"13 #include "bv_tree.h"14 12 #include "model.h" 15 13 … … 20 18 class SoundBuffer; 21 19 class SoundSource; 20 class BVTree; 22 21 23 22 … … 50 49 51 50 /** @returns a reference to the obb tree of this worldentity */ 52 BVTree* getOBBTree() { return this->obbTree; } 51 BVTree* getOBBTree() { return this->obbTree; }; 53 52 54 53 virtual void postSpawn ();
Note: See TracChangeset
for help on using the changeset viewer.