Пример #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);
 }
Пример #2
0
 public BattleCell(BSObject holder = null) : base()
 {
     _holder = holder;
 }
Пример #3
0
 internal BattleCell Put(BSObject obj)
 {
     _holder = obj;
     return(this);
 }
Пример #4
0
 protected void Act()
 {
     _holder?.Act(actor);
     _holder = actor;
 }
Пример #5
0
 public BattleCell CreateCell(s state, BSObject holder = null)
 {
     return(new BattleCell(holder).Set(state));
 }
Пример #6
0
 public BattleCell PlaceObjectRandom(BSObject obj, s state)
 {
     return((_cells.RandomEmpty() as BattleCell).Put(obj).Set(state));
 }