99 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:37
virtual void print() const
Prints the pawn to the terminal with its associated ANSI settings.
Definition pawn.cpp:47
void setSymbol(char)
Sets the symbol of the pawn.
Definition pawn.cpp:40
Coordinates getCoordinates() const
Gets the coordinates of the pawn.
Definition pawn.cpp:26
ANSISettings getSettings() const
Gets the ANSI settings of the pawn.
Definition pawn.cpp:36
Coordinates coordinates
Definition pawn.hpp:40
char symbol
Definition pawn.hpp:39
void setCoordinates(const Coordinates &)
Sets the coordinates of the pawn.
Definition pawn.cpp:20
ANSISettings settings
Definition pawn.hpp:41
void setSettings(const ANSISettings &)
Sets the ANSI settings of the pawn.
Definition pawn.cpp:30
char getSymbol() const
Gets the symbol of the pawn.
Definition pawn.cpp:43
virtual ~Pawn()
Virtual destructor.
Definition pawn.hpp:52
Coordinates struct header file.
Sista library namespace.
Definition ansi.cpp:26
Represents a set of ANSI settings including colors and attributes.
Definition ansi.hpp:471
Represents 2D coordinates with x and y values.
Definition coordinates.hpp:31