Exemplo n.º 1
0
 protected void printInfo(GenericPerson creature, int num)
 {
     if (creature.GetType().IsSubclassOf(typeof(GenericCreature)))
     {//this is a creature
         printInfoCreature(creature, num);
     }
     else
     {//otherwise, it's the player
         printInfoPlayer(creature, num);
     }
 }