ColorShapeLinks
An assignment for the AI course unit of the Bachelor in Videogames at Lusófona University
Pos Struct Reference

Represents a board position. More...

Collaboration diagram for Pos:
Collaboration graph

Public Member Functions

 Pos (int row, int col)
 Creates a new board position. More...
 
override string ToString ()
 Provides a string representation of the board position in the form "(row,col)". More...
 

Public Attributes

readonly int row
 Board row. More...
 
readonly int col
 Board column. More...
 

Detailed Description

Represents a board position.

Definition at line 9 of file Pos.cs.

Constructor & Destructor Documentation

◆ Pos()

Pos ( int  row,
int  col 
)
inline

Creates a new board position.

Parameters
rowBoard row.
colBoard column.

Definition at line 22 of file Pos.cs.

Member Function Documentation

◆ ToString()

override string ToString ( )

Provides a string representation of the board position in the form "(row,col)".

Returns
A string representation of the board position.

Member Data Documentation

◆ col

readonly int col

Board column.

Definition at line 15 of file Pos.cs.

◆ row

readonly int row

Board row.

Definition at line 12 of file Pos.cs.


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