Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
    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);
        }
    }