public PlayerState( int number, string name, ColorState color, PositionState position, DirectionState direction, bool alive) { this.Number = number; this.Name = name; this.Color = color; this.Position = position; this.Direction = direction; this.Alive = alive; }
public CellState(ColorState color, bool passable) { this.Color = color; this.Passable = passable; }
public PlayerInfo(string name, ColorState color) { this.Name = name; this.Color = color; }
public bool Equals(ColorState other) { if ((object)other == null) return false; return this.R.Equals(other.R) && this.G.Equals(other.G) && this.B.Equals(other.B); }