2023-09-19 17:45:16 -04:00
|
|
|
#ifndef MXPOINT32_H
|
|
|
|
#define MXPOINT32_H
|
|
|
|
|
|
|
|
#include "mxtypes.h"
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxPoint32 {
|
2023-09-19 17:45:16 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxPoint32() {}
|
2024-03-21 10:39:23 -04:00
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10012170
|
2023-12-29 23:55:36 -05:00
|
|
|
MxPoint32(MxS32 p_x, MxS32 p_y) { CopyFrom(p_x, p_y); }
|
2024-03-21 10:39:23 -04:00
|
|
|
|
2023-12-21 10:52:42 -05:00
|
|
|
MxPoint32(const MxPoint32& p_point)
|
|
|
|
{
|
|
|
|
this->m_x = p_point.m_x;
|
|
|
|
this->m_y = p_point.m_y;
|
|
|
|
}
|
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS32 GetX() const { return m_x; }
|
|
|
|
MxS32 GetY() const { return m_y; }
|
2023-12-21 10:52:42 -05:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetX(MxS32 p_x) { m_x = p_x; }
|
|
|
|
void SetY(MxS32 p_y) { m_y = p_y; }
|
2023-12-21 10:52:42 -05:00
|
|
|
|
|
|
|
private:
|
2024-07-04 19:06:32 -04:00
|
|
|
void CopyFrom(MxS32 p_x, MxS32 p_y)
|
2023-12-29 23:55:36 -05:00
|
|
|
{
|
|
|
|
this->m_x = p_x;
|
|
|
|
this->m_y = p_y;
|
|
|
|
}
|
|
|
|
|
|
|
|
MxS32 m_x; // 0x00
|
|
|
|
MxS32 m_y; // 0x04
|
2023-09-19 17:45:16 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXPOINT32_H
|