12#ifndef ZOAPPGAMEPIECES_H
13#define ZOAPPGAMEPIECES_H
71 mIdentity{ .mType { type }, .mOwner { owner } }
glm::u8vec2 getLocation() const
Gets the current location of this piece on the board.
Definition piece.hpp:107
State mState
The current (high level) state of this piece.
Definition piece.hpp:140
PieceIdentity getIdentity() const
Gets the identity of this piece, both its type and owner.
Definition piece.hpp:93
void setLocation(glm::u8vec2 location)
Sets the location of this piece on the board.
Definition piece.hpp:121
RoleID getOwner() const
Gets the owner of this piece, the set to which this piece belongs.
Definition piece.hpp:79
State getState() const
Gets the (high level) state of this piece.
Definition piece.hpp:100
void setState(State state)
Sets the (high level) state of this piece.
Definition piece.hpp:114
glm::u8vec2 mLocation
This piece's current location with respect to the game board.
Definition piece.hpp:152
State
A value representing the (high level) state of this piece.
Definition piece.hpp:58
bool canMove(uint8_t roll, RoleID player) const
Tests whether this piece can be moved at all.
Definition piece.cpp:4
PieceTypeID getType() const
Gets the type of piece this piece is.
Definition piece.hpp:86
PieceIdentity mIdentity
The unique identity of this piece.
Definition piece.hpp:146
Piece(PieceTypeID type, RoleID owner)
Constructs a new Piece.
Definition piece.hpp:70
PieceTypeID
Enum listing the different types of pieces present in the game.
Definition piece_type_id.hpp:22
RoleID
A value representing the various roles (or sets, if preferred) possible in this game.
Definition role_id.hpp:20
Contains enum listing the different types of pieces present in the game.
Contains an enum for the roles (sets of pieces) possible within this game.
Data uniquely identifying a piece used in the game.
Definition piece.hpp:29
RoleID mOwner
The set to which this piece belongs.
Definition piece.hpp:40
PieceTypeID mType
The type of the piece.
Definition piece.hpp:34