mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 04:26:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_SERVERCELLCONTROLLER_HPP
 | |
| #define OPENMW_SERVERCELLCONTROLLER_HPP
 | |
| 
 | |
| #include <deque>
 | |
| #include <string>
 | |
| #include <components/esm/records.hpp>
 | |
| #include <components/openmw-mp/Base/BaseObject.hpp>
 | |
| #include <components/openmw-mp/Packets/Actor/ActorPacket.hpp>
 | |
| #include <components/openmw-mp/Packets/Object/ObjectPacket.hpp>
 | |
| 
 | |
| class Player;
 | |
| class Cell;
 | |
| 
 | |
| 
 | |
| class CellController
 | |
| {
 | |
| private:
 | |
|     CellController();
 | |
|     ~CellController();
 | |
| 
 | |
|     CellController(CellController&); // not used
 | |
| public:
 | |
|     static void create();
 | |
|     static void destroy();
 | |
|     static CellController *get();
 | |
| public:
 | |
|     typedef std::deque<Cell*> TContainer;
 | |
|     typedef TContainer::iterator TIter;
 | |
| 
 | |
|     Cell * addCell(ESM::Cell cell);
 | |
|     void removeCell(Cell *);
 | |
| 
 | |
|     void deletePlayer(Player *player);
 | |
| 
 | |
|     Cell *getCell(ESM::Cell *esmCell);
 | |
|     Cell *getCellByXY(int x, int y);
 | |
|     Cell *getCellByName(std::string cellName);
 | |
| 
 | |
|     void update(Player *player);
 | |
| 
 | |
| private:
 | |
|     static CellController *sThis;
 | |
|     TContainer cells;
 | |
| };
 | |
| 
 | |
| #endif //OPENMW_SERVERCELLCONTROLLER_HPP
 |