public MoveAction(Mode mode, int byAmount, ToTarget toTarget, int targetId, PlaceTypeTarget targetType, MovementType movementType) { this.mode = mode; this.byAmount = byAmount; this.toTarget = toTarget; this.targetId = targetId; this.targetType = targetType; this.movementType = movementType; }
private static int GetPlaceId(PlaceTypeTarget targetType) { Board board = GameplayController.instance.board; switch (targetType) { case PlaceTypeTarget.Prison: return(board.GetPlaceIndex(typeof(PrisonSpecial))); case PlaceTypeTarget.Start: return(board.GetPlaceIndex(typeof(StartSpecial))); case PlaceTypeTarget.Chance: return(board.GetPlaceIndex(typeof(ChanceSpecial))); default: return(0); } }