Class GameObject
An object in the game. The most basic class that all game classes should inherit from automatically.
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)
Namespace: Joueur.cs.Games.Chess
Assembly: joueur-cs.dll
Syntax
public class GameObject : BaseGameObject
Constructors
GameObject()
Creates a new instance of GameObject. Used during game initialization, do not call directly.
Declaration
protected GameObject()
Properties
Logs
Any strings logged will be stored here. Intended for debugging.
Declaration
public IList<string> Logs { get; protected set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> |
Methods
Log(String)
Adds a message to this GameObject's logs. Intended for your own debugging purposes, as strings stored here are saved in the gamelog.
Declaration
public void Log(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A string to add to this GameObject's log. Intended for debugging. |