public CreateAction(int charIndex, ActiveChar character, CharSprite.ActionType action) { this.charIndex = charIndex; this.Action = action; this.charData = character.CharData; this.dir = character.CharDir; }
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; }