aboutsummaryrefslogtreecommitdiff
path: root/src/esieequest/game/Text.java
blob: b4ad037c73d493bd50a7c218b2ee953f41077b1c (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
package esieequest.game;

/**
 * Contains all the messages displayed by the Game.
 * 
 * @author Benoit LUBRANO DI SBARAGLIONE
 * @author Pacien TRAN-GIRARD
 */
public enum Text {

	// @formatter:off
	
	CHALLENGE_FLAG("challenge"),
	
	// interface
	DEFAULT_CONSOLE("Want to start a new game? Click on the 'New' button at the top left corner."
			+ "\nMove your cursor over the buttons to know what they do."
			+ "\nYou can also use the arrow keys!"),
	DEFAULT_QUEST_TITLE("ESIEEquest"),
	CURRENT_QUEST_PREFIX("Current quest: "),
	
	NOT_IMPLEMENTED("Not implemented... Yet."),
	
	NEW_GAME_BUTTON("New"),
	NEW_GAME_TOOLTIP("New game"),
	
	LOAD_GAME_BUTTON("Load"),
	LOAD_GAME_TOOLTIP("Load a game"),
	
	SAVE_GAME_BUTTON("Save"),
	SAVE_GAME_TOOLTIP("Save the current game"),
	
	TOGGLE_SOUND_BUTTON("Sound"),
	TOGGLE_SOUND_TOOLTIP("Toggle sound"),
	
	GO_FORWARD_BUTTON("↥"),
	GO_FORWARD_TOOLTIP("Go forward"),
	
	GO_BACK_BUTTON("↧"),
	GO_BACK_TOOLTIP("Go back"),
	
	TURN_LEFT_BUTTON("↰"),
	TURN_LEFT_TOOLTIP("Turn left"),
	
	TURN_RIGHT_BUTTON("↱"),
	TURN_RIGHT_TOOLTIP("Turn right"),
	
	INVENTORY_BUTTON("I"),
	INVENTORY_TOOLTIP("Open inventory"),
	
	ACTION_BUTTON("A"),
	ACTION_TOOLTIP("Talk/Take item"),
	
	// messages
	WELCOME("Welcome to ESIEEquest! ESIEEquest is a new, amazingly boring adventure game."),
	CHALLENGE_FAILED("Challenge failed: you died from exhaustion..."),
	QUIT("Thanks for wasting your time. Good bye."),
	KILL("You killed yourself ! Game Over."),
	
	ALEA_OVERRIDE_ENABLED("Alea override enabled."),
	ALEA_OVERRIDE_DISABLED("Alea override disabled."),
	
	NO_DOOR("There is no door."),
	DOOR_LOCKED("This door is locked."),
	INVENTORY_FULL("Cannot pick up item: the maximum inventory weight has been reached."),
	INVENTORY_EMPTY("Your inventory is empty."),
	
	BEAMER_ROOM_MEMORISED("The coordinates of the current location have been memorised: "),
	BEAMER_TELEPORTED("Zap! You have reached your destination. The device's memory has been cleared."),
	
	// objects
	NOTE_PREFIX("It is written: "),
	NOTE_ATHANASE("In case of logical trouble: find Athanase, office #3254."),
	
	// lists
	HELP_PREFIX("Available commands: "),
	HELP_SUFFIX("."),
	
	LOCATION_PREFIX("Location: "),
	LOCATION_SUFFIX("."),
	
	EXITS_PREFIX("Available exits: "),
	EXITS_NO_EXIT("no exit"),
	EXITS_SUFFIX("."),
	
	CHARACTERS_PREFIX("Characters here: "),
	CHARACTERS_NO_CHARACTER("nobody"),
	CHARACTERS_SUFFIX("."),
	
	ITEMS_PREFIX("Items here: "),
	ITEMS_NO_ITEM("nothing"),
	ITEMS_SUFFIX("."),
	
	DIRECTION_PREFIX("Facing: "),
	DIRECTION_SUFFIX("."),
	
	INVENTORY_PREFIX("Items: "),
	INVENTORY_SUFFIX(". "),
	
	INVENTORY_WEIGHT_PREFIX("Total inventory weight: "),
	INVENTORY_WEIGHT_SUFFIX("."),
		
	// formatting
	LIST_SEPARATOR(", "),
	FILENAME_SEPARATOR("_"),
	COMMAND_SEPARATOR(" "),
	NEW_LINE("\n"),
	SPACE(" "),
	
	// errors
	UNKNOWN_COMMAND("Unknown command."),
	TOO_MANY_ARGUMENTS("Too many arguments."),
	MISSING_ARGUMENT("Missing argument."),
	FILE_PATH_NOT_SPECIFIED("File path not specified."),
	NO_SUCH_EXIT("No such exit."),
	NO_SUCH_DIRECTION("No such direction."),
	NO_DIRECTION_SPECIFIED("No direction specified."),
	NO_SUCH_ROOM("No such room."),
	NO_CHARACTER("No character."),
	NO_SUCH_CHARACTER("No such character."),
	NO_ITEM("No item."),
	NO_ITEM_SPECIFIED("No item specified."),
	NO_SUCH_ITEM("No such item."),
	NO_USE("This item has no use."),
	NOTHING_TO_DO("Nothing to do."),
	
	PARSING_ERROR_PREFIX("Parsing error: "),
	PARSING_ERROR_SUFFIX(""),
	DESERIALISING_ERROR_PREFIX("Deserialising error: "),
	DESERIALISING_ERROR_SUFFIX(""),
	
	;
	
	// @formatter:on

	private final String text;

	/**
	 * Creates a new Text constant.
	 * 
	 * @param text
	 *            the value of the constant
	 */
	Text(final String text) {
		this.text = text;
	}

	@Override
	public String toString() {
		return this.text;
	}

}