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

Configuration class for the RandomAIThinker. More...

Inheritance diagram for RandomAI:
Inheritance graph
Collaboration diagram for RandomAI:
Collaboration graph

Public Member Functions

override void Setup ()
 This method will be called before a match starts and is used for instantiating a new RandomAIThinker. More...
 
- Public Member Functions inherited from AIPlayer
override string ToString ()
 A string representation of this player. Equivalent to AIPlayer.PlayerName. More...
 

Public Attributes

override string PlayerName => "RandomAI"
 The player's name. More...
 
override IThinker Thinker => thinker
 The player's thinker. More...
 
- Public Attributes inherited from AIPlayer
bool IsActive => isActive
 Is the AI active? More...
 
bool IsHuman => false
 Is the player human? More...
 

Additional Inherited Members

- Protected Member Functions inherited from AIPlayer
virtual void Awake ()
 Awake is called when the script instance is being loaded. More...
 
- Properties inherited from AIPlayer
float AITimeLimit [get, private set]
 The time in seconds available for the AI to play. More...
 
abstract string PlayerName [get]
 The player's name. More...
 
abstract IThinker Thinker [get]
 The player's thinker. More...
 
- Properties inherited from IPlayer
bool IsHuman [get]
 Is the player human? More...
 
string PlayerName [get]
 Name of the player. More...
 
IThinker Thinker [get]
 The player's thinker. More...
 

Detailed Description

Configuration class for the RandomAIThinker.

Definition at line 11 of file RandomAI.cs.

Member Function Documentation

◆ Setup()

override void Setup ( )
inlinevirtual

This method will be called before a match starts and is used for instantiating a new RandomAIThinker.

See also
AIPlayer.Setup

Implements AIPlayer.

Definition at line 31 of file RandomAI.cs.

Member Data Documentation

◆ PlayerName

override string PlayerName => "RandomAI"

The player's name.

The string "RandomAI".

See also
AIPlayer.PlayerName

Definition at line 16 of file RandomAI.cs.

◆ Thinker

override IThinker Thinker => thinker

The player's thinker.

An instance of RandomAIThinker.

See also
AIPlayer.Thinker

Definition at line 21 of file RandomAI.cs.


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