aboutsummaryrefslogtreecommitdiff
path: root/src/ch/epfl/xblast/server/Ticks.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/xblast/server/Ticks.java')
-rw-r--r--src/ch/epfl/xblast/server/Ticks.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/ch/epfl/xblast/server/Ticks.java b/src/ch/epfl/xblast/server/Ticks.java
new file mode 100644
index 0000000..aa08a23
--- /dev/null
+++ b/src/ch/epfl/xblast/server/Ticks.java
@@ -0,0 +1,41 @@
1package ch.epfl.xblast.server;
2
3/**
4 * The Ticks interface defines durations in ticks of time-sensitive aspects of the game.
5 *
6 * @author Pacien TRAN-GIRARD (261948)
7 * @author Timothée FLOURE (257420)
8 */
9public interface Ticks {
10
11 /**
12 * Duration of the death of a player (in ticks).
13 */
14 int PLAYER_DYING_TICKS = 8;
15
16 /**
17 * Duration of the invulnerability of a player (in ticks).
18 */
19 int PLAYER_INVULNERABLE_TICKS = 64;
20
21 /**
22 * Duration of the timer of a bomb (in ticks).
23 */
24 int BOMB_FUSE_TICKS = 100;
25
26 /**
27 * Duration of an explosion (in ticks).
28 */
29 int EXPLOSION_TICKS = 30;
30
31 /**
32 * Duration of crumbling of a wall (in ticks).
33 */
34 int WALL_CRUMBLING_TICKS = EXPLOSION_TICKS;
35
36 /**
37 * Duration of the presence of a bonus (in ticks).
38 */
39 int BONUS_DISAPPEARING_TICKS = EXPLOSION_TICKS;
40
41}