104 virtual void print()
const;
ANSI escape code utilities and types for terminal formatting.
Class representing a Pawn owned by a Field or SwappableField.
Definition pawn.hpp:42
virtual void print() const
Prints the pawn to the terminal with its associated ANSI settings.
Definition pawn.cpp:52
void setSymbol(char)
Sets the symbol of the pawn.
Definition pawn.cpp:45
Coordinates getCoordinates() const
Gets the coordinates of the pawn.
Definition pawn.cpp:31
ANSISettings getSettings() const
Gets the ANSI settings of the pawn.
Definition pawn.cpp:41
Coordinates coordinates
Definition pawn.hpp:45
char symbol
Definition pawn.hpp:44
void setCoordinates(const Coordinates &)
Sets the coordinates of the pawn.
Definition pawn.cpp:25
ANSISettings settings
Definition pawn.hpp:46
void setSettings(const ANSISettings &)
Sets the ANSI settings of the pawn.
Definition pawn.cpp:35
char getSymbol() const
Gets the symbol of the pawn.
Definition pawn.cpp:48
virtual ~Pawn()
Virtual destructor.
Definition pawn.hpp:57
Coordinates struct header file.
Sista library namespace.
Definition ansi.cpp:31
Represents a set of ANSI settings including colors and attributes.
Definition ansi.hpp:492
Represents 2D coordinates with x and y values.
Definition coordinates.hpp:36