Esempio n. 1
0
 public CreateAction(int charIndex, ActiveChar character, CharSprite.ActionType action)
 {
     this.charIndex = charIndex;
     this.Action = action;
     this.charData = character.CharData;
     this.dir = character.CharDir;
 }
Esempio n. 2
0
 public CreateAction(int charIndex, ActiveChar character, CharSprite.ActionType action, bool looping, bool inPlace)
 {
     this.charIndex = charIndex;
     this.Action = action;
     this.charData = character.CharData;
     this.dir = character.CharDir;
     this.Looping = looping;
     this.InPlace = inPlace;
 }
        public virtual void Begin()
        {
            CharSprite sprite = null;

            if (CharIndex < 0)
            {
                sprite = Screen.Players[CharIndex + Gameplay.Processor.MAX_TEAM_SLOTS];
            }
            else
            {
                sprite = Screen.Npcs[CharIndex];
            }
            MapLoc = sprite.MapLoc;
        }