#include <block.hpp>
Utility Object for representing a Level Block and its Coordinate.
◆ LevelObject() [1/2]
Constructs a new LevelObject with the specified block and coordinate.
- Parameters
-
block | The block of the object. |
coordinate | The coordinate of the object. |
◆ LevelObject() [2/2]
Constructs a new LevelObject with the specified block and coordinate.
- Parameters
-
block | The block of the object. |
coordinate | The coordinate of the object. |
◆ block()
Block LevelZ::LevelObject::block |
( |
| ) |
|
|
inline |
Gets the block of the object.
- Returns
- Block of the object.
◆ coordinate()
Gets the coordinate of the object.
- Returns
- Coordinate of the object.
◆ operator!=()
bool LevelZ::LevelObject::operator!= |
( |
const LevelObject & | other | ) |
const |
|
inline |
Compares two LevelObjects for inequality.
- Parameters
-
- Returns
- True if the LevelObjects are not equal, false otherwise.
◆ operator<<()
std::ostream & LevelZ::LevelObject::operator<< |
( |
std::ostream & | strm | ) |
|
|
inline |
Overloads the << operator to allow for easy printing of a LevelObject.
- Parameters
-
strm | The output stream to write to. |
- Returns
- The output stream.
◆ operator==()
bool LevelZ::LevelObject::operator== |
( |
const LevelObject & | other | ) |
const |
|
inline |
Compares two LevelObjects for equality.
- Parameters
-
- Returns
- True if the LevelObjects are equal, false otherwise.
◆ to_string()
std::string LevelZ::LevelObject::to_string |
( |
| ) |
const |
|
inline |
The documentation for this struct was generated from the following file:
- /home/runner/work/cpp-bindings/cpp-bindings/include/levelz/block.hpp