YourCityInvadedByAliens
Documentation for code of the game
|
|
bool operator<(const YPos &other) const
Definition: ypos.cpp:70
void setX(int x)
Definition: ypos.cpp:34
int getX() const
Definition: ypos.cpp:16
int m_nY
Definition: ypos.h:25
bool isInsideRect(const YPos &topLeft, const YPos &bottomRight) const
Definition: ypos.cpp:74
YPos & operator+=(const YPos &other)
Definition: ypos.cpp:42
float getDistance(const YPos &pos) const
Definition: ypos.cpp:83
int m_nX
Definition: ypos.h:25
void setY(int y)
Definition: ypos.cpp:38
bool operator>(const YPos &other) const
Definition: ypos.cpp:66
YPos operator+(const YPos &other) const
Definition: ypos.cpp:54
YPos()
Definition: ypos.cpp:6
void update(int x, int y)
Definition: ypos.cpp:24
int getY() const
Definition: ypos.cpp:20
YPos operator-(const YPos &other) const
Definition: ypos.cpp:60
YPos & operator-=(const YPos &other)
Definition: ypos.cpp:48