Exemplo n.º 1
0
 public MockActionContext(Character user, CombatAction hitboxAction, ExplosionData explosion, BattleData data)
 {
     User            = user;
     StrikeLandTiles = new List <Loc>();
     HitboxAction    = hitboxAction;
     Explosion       = explosion;
     Data            = data;
 }
Exemplo n.º 2
0
 public ExplosionData(ExplosionData other)
 {
     TargetAlignments = other.TargetAlignments;
     HitTiles         = other.HitTiles;
     Range            = other.Range;
     Speed            = other.Speed;
     ExplodeFX        = new BattleFX(other.ExplodeFX);
     IntroFX          = new List <BattleFX>();
     foreach (BattleFX fx in other.IntroFX)
     {
         IntroFX.Add(new BattleFX(fx));
     }
     Emitter     = (CircleSquareEmitter)other.Emitter.Clone();
     TileEmitter = (FiniteEmitter)other.TileEmitter.Clone();
 }
Exemplo n.º 3
0
 public BattleContext(BattleContext other, bool copyGlobal) : base(other)
 {
     TurnCancel = other.TurnCancel;
     if (copyGlobal)
     {
         GlobalContextStates = other.GlobalContextStates.Clone();
     }
     else
     {
         GlobalContextStates = other.GlobalContextStates;
     }
     StrikeStartTile = other.StrikeStartTile;
     StrikeEndTile   = other.StrikeEndTile;
     StartDir        = other.StartDir;
     ExplosionTile   = other.ExplosionTile;
     TargetTile      = other.TargetTile;
     if (copyGlobal)
     {
         StrikeLandTiles = new List <Loc>();
         StrikeLandTiles.AddRange(other.StrikeLandTiles);
     }
     else
     {
         StrikeLandTiles = other.StrikeLandTiles;
     }
     ActionType   = other.ActionType;
     UsageSlot    = other.UsageSlot;
     StrikesMade  = other.StrikesMade;
     Strikes      = other.Strikes;
     HitboxAction = other.HitboxAction.Clone();
     Explosion    = new ExplosionData(other.Explosion);
     Data         = new BattleData(other.Data);
     Item         = new InvItem(other.Item);
     SkillUsedUp  = other.SkillUsedUp;
     actionMsg    = other.actionMsg;
     actionSilent = other.actionSilent;
     Hit          = other.Hit;
     RangeMod     = other.RangeMod;
 }