예제 #1
0
 public override void Update(GameContextActorInformations informations)
 {
     if (informations == null) throw new ArgumentNullException("informations");
     base.Update(informations);
     if (informations is GameFightMonsterInformations)
     {
         Update(informations as GameFightMonsterInformations);
     }
 }
예제 #2
0
 public override void Update(GameContextActorInformations informations)
 {
     if (informations == null) throw new ArgumentNullException("informations");
     base.Update(informations);
     if (informations is GameFightCharacterInformations)
     {
         Update(informations as GameFightCharacterInformations);
     }
     else
     {
         logger.Error("Cannot update a {0} with a {1} instance", GetType(), informations.GetType()); 
     }
 }
예제 #3
0
    public virtual void Update(GameContextActorInformations actorInformation)
    {
        GameFightFighterInformations fighterInformations = actorInformation as GameFightFighterInformations;       
        if (fighterInformations != null)
        {
            IsAlive = fighterInformations.alive;
            Stats.Update(fighterInformations.stats);
        }
        Id = actorInformation.contextualId;
        Look = actorInformation.look;
        Map = Fight.Map;
            
        Update(actorInformation.disposition);

    }