Beispiel #1
0
 public BattleCell MoveTo(BattleCell target)
 {
     target.Set(s.holded);
     this.Set(s.passed);
     target.actor = (Character)_holder;
     _holder      = null;
     target.Act();
     OnMove();
     target.OnMove();
     return(target);
 }
Beispiel #2
0
 public BattleCell(BSObject holder = null) : base()
 {
     _holder = holder;
 }
Beispiel #3
0
 internal BattleCell Put(BSObject obj)
 {
     _holder = obj;
     return(this);
 }
Beispiel #4
0
 protected void Act()
 {
     _holder?.Act(actor);
     _holder = actor;
 }
Beispiel #5
0
 public BattleCell CreateCell(s state, BSObject holder = null)
 {
     return(new BattleCell(holder).Set(state));
 }
Beispiel #6
0
 public BattleCell PlaceObjectRandom(BSObject obj, s state)
 {
     return((_cells.RandomEmpty() as BattleCell).Put(obj).Set(state));
 }