Esempio n. 1
0
 public Actor(string aName, ActorFactory.MaxHPts maxHPts, Actor anOwner)
 {
     _maxHP = (int)maxHPts;
     _healthPoints = (int)maxHPts;
     _owner = anOwner;
     name = aName;
 }
Esempio n. 2
0
 public static ActorFactory GetInstance()
 {
     if (theFactory == null)
     {
         theFactory = new ActorFactory();
     }
     return theFactory;
 }