OOP A3 Board Games 35
a Board Game Project Made by Students at Cairo FCAI
Loading...
Searching...
No Matches
Move< T > Class Template Reference

Represents a single move in a board game. More...

#include <BoardGame_Classes.h>

Public Member Functions

 Move (int x, int y, T symbol)
 Construct a move at (x, y) using a symbol.
int get_x () const
 Get row index.
int get_y () const
 Get column index.
get_symbol () const
 Get the move symbol.

Detailed Description

template<typename T>
class Move< T >

Represents a single move in a board game.

Template Parameters
TType of symbol placed on the board (e.g., char, int).

Constructor & Destructor Documentation

◆ Move()

template<typename T>
Move< T >::Move ( int x,
int y,
T symbol )
inline

Construct a move at (x, y) using a symbol.

Member Function Documentation

◆ get_symbol()

template<typename T>
T Move< T >::get_symbol ( ) const
inline

Get the move symbol.

◆ get_x()

template<typename T>
int Move< T >::get_x ( ) const
inline

Get row index.

◆ get_y()

template<typename T>
int Move< T >::get_y ( ) const
inline

Get column index.


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