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

Script which controls ColorShapeLinks matches. More...

+ Inheritance diagram for MatchController:
+ Collaboration diagram for MatchController:

Public Member Functions

string PlrNameColor (PColor color)
 Name and color of given player. More...
 

Properties

string WinnerString [get]
 Name and color of winner. More...
 
Winner Result [get]
 Result of the match being controlled. More...
 
UnityEvent MatchOver [get]
 Unity event invoked when the match is over. More...
 

Detailed Description

Script which controls ColorShapeLinks matches.

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

  • Model - Board.
  • View - MatchView.
  • Controller - This class.

Member Function Documentation

◆ PlrNameColor()

string PlrNameColor ( PColor  color)

Name and color of given player.

Parameters
colorColor of player to get name/color of.
Returns
A string with the name and color of player.

Property Documentation

◆ MatchOver

UnityEvent MatchOver
get

Unity event invoked when the match is over.

A parameterless Unity event.

◆ Result

Winner Result
get

Result of the match being controlled.

One of the possible values in Winner.

◆ WinnerString

string WinnerString
get

Name and color of winner.

Returns
A string with the name and color of the winner.

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