public void DisplayMaxHealthPoint() { var health = new HealthPoint(100); var max = new MaxHealthPoint(health); Assert.IsFalse(string.IsNullOrWhiteSpace(max.Display())); }
private static Actor CreateActor() { var actorId = new ActorId("TestActor"); var actorType = new ActorType("TestActor"); var health = new HealthPoint(100); var max = new MaxHealthPoint(health); var attack = new Attack(50); var speed = new Speed(50); var magic = new Magic(50); return(new Actor(actorId, actorType, max, health, attack, speed, magic)); }
public Actor( ActorId actorId, ActorType actorType, MaxHealthPoint maxHp, HealthPoint hp, Attack attack, Speed speed, Magic magic) { ActorId = actorId; ActorType = actorType; this.maxHp = maxHp; this.hp = hp; this.attack = attack; this.speed = speed; this.magic = magic; }