- Timestamp:
- Mar 24, 2011, 4:16:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spaceboundaries/src/orxonox/worldentities/SpaceBoundaries.h
r8087 r8110 34 34 #include <string> 35 35 #include "core/SubclassIdentifier.h" 36 #include "worldentities/StaticEntity.h"37 36 38 37 /* Einige, spezifische include-Statements */ 39 38 #include "core/CoreIncludes.h" 39 #include "tools/interfaces/Tickable.h" 40 #include "worldentities/StaticEntity.h" 41 #include "worldentities/WorldEntity.h" 40 42 41 43 … … 46 48 public: 47 49 SpaceBoundaries(BaseObject* creator); 48 virtual ~SpaceBoundaries() {} 50 ~SpaceBoundaries(); 51 52 void setCenter(Vector3 r); 53 Vector3 getCenter(); 54 55 void setMaxDistance(float r); 56 float getMaxDistance(); 57 58 void setWarnDistance(float r); 59 float getWarnDistance(); 49 60 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 61 void XMLPort(Element& xmlelement, XMLPort::Mode mode); 62 63 void tick(float dt); 51 64 52 65 private: 66 Vector3 center; 67 float maxDistance; 68 float warnDistance; 53 69 70 float computeDistance(WorldEntity *item); //!< Auf den Mittelpunkt 'center' bezogen. 54 71 }; 55 72 }
Note: See TracChangeset
for help on using the changeset viewer.