Changeset 3365 in orxonox.OLD for orxonox/trunk/src/world.h
- Timestamp:
- Jan 7, 2005, 1:14:33 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world.h
r3236 r3365 11 11 12 12 13 13 class TrackManager; 14 14 class Track; 15 15 class WorldEntity; 16 16 class Camera; 17 class PNode; 18 class GLMenuImageScreen; 17 19 18 20 //! The game environment … … 23 25 World (int worldID); 24 26 virtual ~World (); 25 26 template<typename T>27 T* spawn (Location* loc, WorldEntity* owner); // template to be able to spawn any derivation of WorldEntity28 template<typename T>29 T* spawn (Placement* plc, WorldEntity* owner);30 27 31 28 virtual ErrorMessage init (); … … 38 35 virtual void destroy (); 39 36 37 //static void vertexCallback (GLfloat* vertex); 38 40 39 void timeSlice (Uint32 deltaT); 41 40 void collide (); 42 41 void draw (); 43 42 void update (); // maps Locations to Placements 44 void calcCameraPos (Location* loc, Placement* plc);43 //void calcCameraPos (Location* loc, Placement* plc); 45 44 46 45 void unload (); 47 46 bool command (Command* cmd); 47 virtual void displayLoadScreen(); 48 virtual void releaseLoadScreen(); 48 49 49 50 void setTrackLen (Uint32 tracklen); … … 53 54 54 55 void spawn (WorldEntity* entity); 55 void spawn (WorldEntity* entity, Location* loc); 56 void spawn (WorldEntity* entity, Placement* plc); 56 void spawn (WorldEntity* entity, Vector* absCoor, Quaternion* absDir); 57 57 58 58 tList<WorldEntity>* entities; 59 59 60 60 // base level data 61 TrackManager* trackManager; 61 62 Track* track; 62 63 Uint32 tracklen; // number of Tracks the World consist of … … 64 65 Camera* localCamera; 65 66 67 68 UPointCurve* testCurve; 66 69 private: 67 70 Uint32 lastFrame; //!> last time of frame … … 70 73 bool bPause; 71 74 75 GLMenuImageScreen* glmis; 76 72 77 char* worldName; 73 78 int debugWorldNr; 74 79 GLuint objectList; 80 SDL_Surface *loadImage; 75 81 76 82 WorldEntity* localPlayer; 77 83 84 PNode* nullParent; 85 78 86 void mainLoop (); 79 87 void synchronize (); … … 83 91 void display (); 84 92 void debug (); 93 94 void swap (unsigned char &a, unsigned char &b); /* \todo: this function doesn't belong here, this should be part of a image class*/ 85 95 }; 86 96
Note: See TracChangeset
for help on using the changeset viewer.