#include <Tile.hpp>
|
std::int32_t | X |
| The x-axis coordinate. More...
|
|
std::int32_t | Y |
| The y-axis coordinate. More...
|
|
std::int32_t | Plane |
| The plane the tile exists on (usually 0-4) More...
|
|
Definition at line 7 of file Tile.hpp.
◆ Tile() [1/3]
◆ Tile() [2/3]
Tile::Tile |
( |
std::int32_t |
X, |
|
|
std::int32_t |
Y, |
|
|
std::int32_t |
Plane = 0 |
|
) |
| |
- Parameters
-
X | The X-axis coordinate |
Y | The Y-axis coordinate |
Plane | The plane the tile exists on (usually 0-4) |
◆ Tile() [3/3]
Tile::Tile |
( |
const Tile & |
T | ) |
|
◆ ~Tile()
◆ DistanceFrom()
double Tile::DistanceFrom |
( |
const Tile & |
T | ) |
const |
◆ IsNegative()
bool Tile::IsNegative |
( |
| ) |
const |
- Returns
- True if any of x, y, or plane are negative in value
◆ IsPositive()
bool Tile::IsPositive |
( |
| ) |
const |
- Returns
- True if all of x, y, and plane are positive in value
◆ operator bool()
Tile::operator bool |
( |
| ) |
const |
- Returns
- True if this is not negative
- See also
- IsNegative
◆ operator!=()
bool Tile::operator!= |
( |
const Tile & |
T | ) |
const |
- Returns
- True if any of the comparative tile x, y, or plane are not equal
◆ operator+()
Tile Tile::operator+ |
( |
const Tile & |
T | ) |
const |
Adds the x-axis and y-axis coordinates, plane is ignored.
◆ operator+=()
Tile& Tile::operator+= |
( |
const Tile & |
T | ) |
|
Adds the x-axis and y-axis coordinates, plane is ignored.
◆ operator-()
Tile Tile::operator- |
( |
const Tile & |
T | ) |
const |
Subtracts the x-axis and y-axis coordinates, plane is ignored.
◆ operator-=()
Tile& Tile::operator-= |
( |
const Tile & |
T | ) |
|
Subtracts the x-axis and y-axis coordinates, plane is ignored.
◆ operator==()
bool Tile::operator== |
( |
const Tile & |
T | ) |
const |
- Returns
- True if the comparative tile x, y, and plane are all equal
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
OS, |
|
|
const Tile & |
T |
|
) |
| |
|
friend |
◆ Plane
The plane the tile exists on (usually 0-4)
Definition at line 21 of file Tile.hpp.
The x-axis coordinate.
Definition at line 19 of file Tile.hpp.
The y-axis coordinate.
Definition at line 20 of file Tile.hpp.
The documentation for this class was generated from the following file: