Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
MoveResultData Struct Reference

Data returned by the GameOfUrModel when making a move, or querying possible moves. More...

#include <model.hpp>

Public Types

enum  Flags : flags {
  IS_POSSIBLE =0x1 , PASSES_ROSETTE =0x2 , LANDS_ON_ROSETTE =0x4 , COMPLETES_ROUTE =0x8 ,
  ENDS_GAME =0x10
}
 Enum values corresponding to masks used on flags to answer questions about the move represented by MoveResultData.
 
using flags = uint8_t
 The underlying type of the variable in which move related flags will be stored.
 

Public Attributes

flags mFlags
 Flags answering certain questions about the effects of making this move.
 
GamePieceData mDisplacedPiece
 Data relating to the piece knocked out of the board, if any.
 
GamePieceData mMovedPiece
 Data relating to the piece being moved.
 
uint8_t mCountersWon
 The number of counters the maker of the move will gain when it is performed.
 
uint8_t mCountersLost
 The number of counters the maker of the move will lose when it is performed.
 

Detailed Description

Data returned by the GameOfUrModel when making a move, or querying possible moves.


The documentation for this struct was generated from the following file: