mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 00:37:58 +03:00
48 lines
No EOL
626 B
C++
48 lines
No EOL
626 B
C++
#include "framework.h"
|
|
#include "GameScriptPosition.h"
|
|
|
|
GameScriptPosition::GameScriptPosition(int x, int y, int z)
|
|
{
|
|
SetX(x);
|
|
SetY(y);
|
|
SetZ(z);
|
|
}
|
|
|
|
int GameScriptPosition::GetX() const
|
|
{
|
|
return x;
|
|
}
|
|
|
|
void GameScriptPosition::SetX(int x)
|
|
{
|
|
if (x < INT_MIN || x > INT_MAX)
|
|
return;
|
|
else
|
|
this->x = x;
|
|
}
|
|
|
|
int GameScriptPosition::GetY() const
|
|
{
|
|
return y;
|
|
}
|
|
|
|
void GameScriptPosition::SetY(int y)
|
|
{
|
|
if (y < INT_MIN || y > INT_MAX)
|
|
return;
|
|
else
|
|
this->y = y;
|
|
}
|
|
|
|
int GameScriptPosition::GetZ() const
|
|
{
|
|
return z;
|
|
}
|
|
|
|
void GameScriptPosition::SetZ(int z)
|
|
{
|
|
if (z < INT_MIN || z > INT_MAX)
|
|
return;
|
|
else
|
|
this->z = z;
|
|
} |