Modifications dans Player
This commit is contained in:
@@ -4,11 +4,14 @@
|
||||
#include "chunk.h"
|
||||
#include "array2d.h"
|
||||
#include "vector3.h"
|
||||
#include "player.h"
|
||||
#include "transformation.h"
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class Chunk;
|
||||
class Player;
|
||||
|
||||
class World {
|
||||
public:
|
||||
@@ -23,10 +26,12 @@ class World {
|
||||
BlockType BlockAt(float x, float y, float z, BlockType defaultBlockType = BTYPE_AIR) const;
|
||||
BlockType BlockAt(const Vector3f& pos, BlockType defaultBlockType = BTYPE_AIR) const;
|
||||
|
||||
void TransposeWorld(Player& player);
|
||||
private:
|
||||
Array2d<Chunk*> m_chunks = Array2d<Chunk*>(WORLD_SIZE_X, WORLD_SIZE_Y);
|
||||
std::vector<Chunk*> m_tbDeleted;
|
||||
|
||||
unsigned int m_center[2] = {UINT16_MAX / 2, UINT16_MAX / 2};
|
||||
int m_center[2] = {INT16_MAX / 2, INT16_MAX / 2};
|
||||
};
|
||||
#endif // WORLD_H__
|
||||
|
||||
|
Reference in New Issue
Block a user