25 lines
529 B
C#
25 lines
529 B
C#
using RobotAndDonkey.Game.Modifiers;
|
|
using RobotAndDonkey.Game.Pois;
|
|
using RobotAndDonkey.Game.Utils;
|
|
|
|
namespace RobotAndDonkey.Game.Board;
|
|
|
|
public record Cell(Hex Hex) : Entity
|
|
{
|
|
public Cell(Cell clone)
|
|
: base(clone)
|
|
{
|
|
Hex = clone.Hex;
|
|
Type = clone.Type;
|
|
Poi = clone.Poi?.DeepClone();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Hex={Hex}, {Type}, Poi={Poi}" + base.ToString();
|
|
}
|
|
|
|
public Poi? Poi { get; set; }
|
|
|
|
public ECellType Type { get; set; }
|
|
} |