public BoxMoveset(Moveset other) { _slots = new BoxMovesetSlot[PkmnConstants.NumMoves]; for (int i = 0; i < _slots.Length; i++) { _slots[i] = new BoxMovesetSlot(other[i]); } }
///<summary>Forgets the move on top, and moves all of the others up once. The last slot will be empty</summary> public void ShiftMovesUp() { for (int i = 1; i < PkmnConstants.NumMoves; i++) { BoxMovesetSlot above = _slots[i - 1]; BoxMovesetSlot below = _slots[i]; above.Move = below.Move; above.PPUps = below.PPUps; } BoxMovesetSlot bottom = _slots[PkmnConstants.NumMoves - 1]; bottom.Clear(); }