1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
-
-
- #ifndef _WORLD_H_
- #define _WORLD_H_
-
- #include <vector>
-
- #include "Entity.h"
- #include "Room.h"
- #include "SkeletalModel.h"
- #include "Sprite.h"
- #include "StaticMesh.h"
-
-
- class World {
- public:
-
-
-
- ~World();
-
-
-
- void destroy();
-
- void addRoom(Room &room);
- unsigned long sizeRoom();
- Room &getRoom(unsigned long index);
-
- void addSprite(SpriteSequence &sprite);
- unsigned long sizeSprite();
- SpriteSequence &getSprite(unsigned long index);
-
- void addEntity(Entity &entity);
- unsigned long sizeEntity();
- Entity &getEntity(unsigned long index);
-
- void addSkeletalModel(SkeletalModel &model);
- unsigned long sizeSkeletalModel();
- SkeletalModel &getSkeletalModel(unsigned long index);
-
- void addStaticMesh(StaticMesh &model);
- unsigned long sizeStaticMesh();
- StaticMesh &getStaticMesh(unsigned long index);
-
-
-
- long getRoomByLocation(long index, float x, float y, float z);
-
-
-
- long getRoomByLocation(float x, float y, float z);
-
- private:
- std::vector<Room *> mRooms;
- std::vector<SpriteSequence *> mSprites;
- std::vector<Entity *> mEntities;
- std::vector<SkeletalModel *> mModels;
- std::vector<StaticMesh *> mMeshes;
- };
-
- World &getWorld();
-
- #endif
|