Ejemplo n.º 1
0
        public void DisplayMaxHealthPoint()
        {
            var health = new HealthPoint(100);
            var max    = new MaxHealthPoint(health);

            Assert.IsFalse(string.IsNullOrWhiteSpace(max.Display()));
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 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;
 }