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

Represents a move to be performed in the future. More...

Collaboration diagram for FutureMove:
Collaboration graph

Public Member Functions

 FutureMove (int column, PShape shape)
 Create a future move. More...
 

Public Attributes

readonly int column
 The column where to drop the piece. More...
 
readonly PShape shape
 The piece to use in the move. More...
 

Static Public Attributes

static FutureMove NoMove => new FutureMove(-1, (PShape)(-1))
 Represent a "no move" decision, when an IA is unable to decide which move to perform, due to a timeout or exception. More...
 

Detailed Description

Represents a move to be performed in the future.

Definition at line 11 of file FutureMove.cs.

Constructor & Destructor Documentation

◆ FutureMove()

FutureMove ( int  column,
PShape  shape 
)
inline

Create a future move.

Parameters
columnThe column where to drop the piece.
shapeThe piece to use in the move.

Definition at line 35 of file FutureMove.cs.

Member Data Documentation

◆ column

readonly int column

The column where to drop the piece.

Definition at line 16 of file FutureMove.cs.

◆ NoMove

FutureMove NoMove => new FutureMove(-1, (PShape)(-1))
static

Represent a "no move" decision, when an IA is unable to decide which move to perform, due to a timeout or exception.

Returns
A "no move" decision.

Definition at line 28 of file FutureMove.cs.

◆ shape

readonly PShape shape

The piece to use in the move.

Definition at line 21 of file FutureMove.cs.


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