the whole game

This commit is contained in:
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

28
src/world/Direction.h Executable file
View File

@@ -0,0 +1,28 @@
#ifndef NET_MINECRAFT__Direction_H__
#define NET_MINECRAFT__Direction_H__
//package net.minecraft;
class Direction
{
public:
static const int UNDEFINED = -1;
static const int SOUTH = 0;
static const int WEST = 1;
static const int NORTH = 2;
static const int EAST = 3;
// for [direction] it gives [tile-face]
static const int DIRECTION_FACING[4];
// for a given face gives direction
static const int FACING_DIRECTION[6];
// for [direction] it gives [opposite direction]
static const int DIRECTION_OPPOSITE[4];
// for [direction][world-facing] it gives [tile-facing]
static const int RELATIVE_DIRECTION_FACING[4][6];
};
#endif /*NET_MINECRAFT__Direction_H__*/