Add Damage Control

This commit is contained in:
Andrew Cooper
2021-03-01 22:53:22 +11:00
parent 4d1a9176ec
commit 8c397ea8f9
19 changed files with 200 additions and 36 deletions

View File

@@ -12,9 +12,14 @@ namespace SuperStarTrek.Systems
}
public string Name { get; }
public double Condition { get; }
public double Condition { get; private set; }
public bool IsDamaged => Condition < 0;
public Command Command { get; }
public abstract void ExecuteCommand(Quadrant quadrant);
public void Repair()
{
if (Condition < 0) { Condition = 0; }
}
}
}