ColorShapeLinks AI
An AI competition for the IEEE Conference on Games 2021
MatchView Class Reference

Script which renders the matches UI. More...

+ Inheritance diagram for MatchView:
+ Collaboration diagram for MatchView:

Package Functions

void UpdateBoard (Move move, Winner result, Pos[] solution)
 Update a position in the board shown on screen. More...
 
void SubmitMessage (string str)
 Submit a message which will be shown in the message box when possible. However, message will be shown in the Unity console immediately. More...
 

Events

Action< FutureMoveMoveSelected
 Native C# event which will be invoked when a move is selected in the UI. More...
 

Detailed Description

Script which renders the matches UI.

Based on the MVC design pattern, composed in this case by the following classes:

Member Function Documentation

◆ SubmitMessage()

void SubmitMessage ( string  str)
inlinepackage

Submit a message which will be shown in the message box when possible. However, message will be shown in the Unity console immediately.

Parameters
strMessage to show in the message box.

◆ UpdateBoard()

void UpdateBoard ( Move  move,
Winner  result,
Pos[]  solution 
)
inlinepackage

Update a position in the board shown on screen.

Parameters
moveMove performed, contains position to update.
resultMatch result. If match is over and someone won, a line will be drawn over the final solution, given in the solution parameter.
solutionThe solution, in case someone won.

Event Documentation

◆ MoveSelected

Action<FutureMove> MoveSelected

Native C# event which will be invoked when a move is selected in the UI.


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