Class BaseAI
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Joueur.cs
Assembly: joueur-cs.dll
Syntax
public abstract class BaseAI
Constructors
BaseAI()
Declaration
protected BaseAI()
Methods
Ended(Boolean, String)
Declaration
public virtual void Ended(bool won, string reason)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | won | |
System.String | reason |
GameUpdated()
Declaration
public virtual void GameUpdated()
GetName()
Declaration
public virtual string GetName()
Returns
Type | Description |
---|---|
System.String |
GetSetting(String)
Gets an AI setting passed to the program via the --aiSettings
flag.If the flag was set it will be returned as a string value, null otherwise.
Declaration
public string GetSetting(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the setting you wish to get the value for |
Returns
Type | Description |
---|---|
System.String | A string representing the value set via command line, or nil if the key was not set |
Invalid(String)
Declaration
public virtual void Invalid(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
Start()
Declaration
public virtual void Start()