ported from perforce
This commit is contained in:
25
RobotAndDonkey.Game/Board/Cell.cs
Normal file
25
RobotAndDonkey.Game/Board/Cell.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user