Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public CellState(ColorState color, bool passable)
 {
     this.Color = color;
     this.Passable = passable;
 }
Esempio n. 3
0
 public PlayerInfo(string name, ColorState color)
 {
     this.Name = name;
     this.Color = color;
 }
Esempio n. 4
0
 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);
 }