mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00
Make getters of GameScriptPosition and GameScriptRotation const.
This commit is contained in:
parent
d225041048
commit
461f7cd1aa
4 changed files with 12 additions and 12 deletions
|
@ -8,7 +8,7 @@ GameScriptPosition::GameScriptPosition(int x, int y, int z)
|
||||||
SetZ(z);
|
SetZ(z);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GameScriptPosition::GetX()
|
int GameScriptPosition::GetX() const
|
||||||
{
|
{
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ void GameScriptPosition::SetX(int x)
|
||||||
this->x = x;
|
this->x = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
int GameScriptPosition::GetY()
|
int GameScriptPosition::GetY() const
|
||||||
{
|
{
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ void GameScriptPosition::SetY(int y)
|
||||||
this->y = y;
|
this->y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
int GameScriptPosition::GetZ()
|
int GameScriptPosition::GetZ() const
|
||||||
{
|
{
|
||||||
return z;
|
return z;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,10 +10,10 @@ public:
|
||||||
|
|
||||||
GameScriptPosition(int x, int y, int z);
|
GameScriptPosition(int x, int y, int z);
|
||||||
|
|
||||||
int GetX();
|
int GetX() const;
|
||||||
void SetX(int x);
|
void SetX(int x);
|
||||||
int GetY();
|
int GetY() const;
|
||||||
void SetY(int y);
|
void SetY(int y);
|
||||||
int GetZ();
|
int GetZ() const;
|
||||||
void SetZ(int z);
|
void SetZ(int z);
|
||||||
};
|
};
|
|
@ -8,7 +8,7 @@ GameScriptRotation::GameScriptRotation(int x, int y, int z)
|
||||||
SetZ(z);
|
SetZ(z);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GameScriptRotation::GetX()
|
int GameScriptRotation::GetX() const
|
||||||
{
|
{
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ void GameScriptRotation::SetX(int x)
|
||||||
this->x = std::clamp(x, -360, 360);
|
this->x = std::clamp(x, -360, 360);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GameScriptRotation::GetY()
|
int GameScriptRotation::GetY() const
|
||||||
{
|
{
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ void GameScriptRotation::SetY(int y)
|
||||||
this->y = std::clamp(y, -360, 360);
|
this->y = std::clamp(y, -360, 360);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GameScriptRotation::GetZ()
|
int GameScriptRotation::GetZ() const
|
||||||
{
|
{
|
||||||
return z;
|
return z;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,10 @@ private:
|
||||||
public:
|
public:
|
||||||
GameScriptRotation(int x, int y, int z);
|
GameScriptRotation(int x, int y, int z);
|
||||||
|
|
||||||
int GetX();
|
int GetX() const;
|
||||||
void SetX(int x);
|
void SetX(int x);
|
||||||
int GetY();
|
int GetY() const;
|
||||||
void SetY(int y);
|
void SetY(int y);
|
||||||
int GetZ();
|
int GetZ() const;
|
||||||
void SetZ(int z);
|
void SetZ(int z);
|
||||||
};
|
};
|
Loading…
Add table
Add a link
Reference in a new issue