-
Notifications
You must be signed in to change notification settings - Fork 0
/
Settings.java
executable file
·62 lines (54 loc) · 2.26 KB
/
Settings.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*******************************************************************************
* Copyright (C) 2019-2020 ROMAINPC
* Copyright (C) 2019-2020 Picachoc
*
* This file is part of PICROM-Wars
*
* PICROM-Wars is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PICROM-Wars is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
package picrom.utils;
import java.util.Random;
import javafx.util.Duration;
/**
* Class with constants static values used by all the game.
*
* Edit here gameboard or eventually gameplay settings.
*/
public class Settings {
// gameplay settings:
public static final Duration TURN_DURATION = Duration.millis(80);
public static final int MAX_UNITS_OUT_BY_TURN = 3;
public static final int INCOME_MULTIPLIER = 10;
public static final int UNITS_GRID_SIZE = 10;
public static final int START_TREASURE = 0;
public static final int NEUTRAL_PRODUCTION_MULTIPLIER = 10;
public static final int NEUTRAL_START_GARRISON = 30; // HPs
public static final int START_GARRISON = 10; // HPs
// Ais settings:
// Used by AIs to decide if a castle have a good or a bad attack/defense
public static final int AI_ATTACK_KEY = 25;
public static final int AI_DEFENSE_KEY = 20;
// game board settings:
public static final int WORLD_WIDTH = 20;
public static final int WORLD_HEIGHT = 18;
public static final int NUMBER_OF_AIS = 3;
public static final int NUMBER_OF_BARONS = 10;
public static final int MINIMAL_CASTLE_DISTANCE = 2;
// graphical settings:
public static final double DEFAULT_SCENE_WIDTH = 1100;
public static final double DEFAULT_SCENE_HEIGHT = 700;
public static final double WORLD_WIDTH_RATIO = 0.7;
// game seed:
public static final Random SEED = new Random();
}