* try to resolve merge conflict
* feat: TU19 (Dec 2014) Features & Content (#32)
* December 2014 files
* Working release build
* Fix compilation issues
* Add sound to Windows64Media
* Add DLC content and force Tutorial DLC
* Revert "Add DLC content and force Tutorial DLC"
This reverts commit 97a4399472.
* Disable broken light packing
* Disable breakpoint during DLC texture map load
Allows DLC loading but the DLC textures are still broken
* Fix post build not working
* ...
* fix vs2022 build
* fix cmake build
---------
Co-authored-by: Loki <lokirautio@gmail.com>
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#include "stdafx.h"
|
|
|
|
#include "FacingEnum.h"
|
|
|
|
FacingEnum *FacingEnum::DOWN = new FacingEnum(0, 1, 0, -1, 0);
|
|
FacingEnum *FacingEnum::UP = new FacingEnum(1, 0, 0, 1, 0);
|
|
FacingEnum *FacingEnum::NORTH = new FacingEnum(2, 3, 0, 0, -1);
|
|
FacingEnum *FacingEnum::SOUTH = new FacingEnum(3, 2, 0, 0, 1);
|
|
FacingEnum *FacingEnum::EAST = new FacingEnum(4, 5, -1, 0, 0);
|
|
FacingEnum *FacingEnum::WEST = new FacingEnum(5, 4, 1, 0, 0);
|
|
|
|
FacingEnum *FacingEnum::BY_DATA[6] = {FacingEnum::DOWN,FacingEnum::UP,FacingEnum::NORTH,FacingEnum::SOUTH,FacingEnum::EAST,FacingEnum::WEST};
|
|
|
|
FacingEnum::FacingEnum(int dataValue, int oppositeIndex, int stepX, int stepY, int stepZ)
|
|
: dataValue(dataValue), oppositeIndex(oppositeIndex), stepX(stepX), stepY(stepY), stepZ(stepZ)
|
|
{
|
|
}
|
|
|
|
int FacingEnum::getDataValue()
|
|
{
|
|
return dataValue;
|
|
}
|
|
|
|
FacingEnum *FacingEnum::getOpposite()
|
|
{
|
|
return BY_DATA[oppositeIndex];
|
|
}
|
|
|
|
int FacingEnum::getStepX()
|
|
{
|
|
return stepX;
|
|
}
|
|
|
|
int FacingEnum::getStepY()
|
|
{
|
|
return stepY;
|
|
}
|
|
|
|
int FacingEnum::getStepZ()
|
|
{
|
|
return stepZ;
|
|
}
|
|
|
|
FacingEnum *FacingEnum::fromData(int data)
|
|
{
|
|
return BY_DATA[data % 6];
|
|
} |