File: printsettings.js

package info (click to toggle)
warzone2100 4.6.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 660,332 kB
  • sloc: cpp: 676,209; ansic: 391,201; javascript: 78,238; python: 16,632; php: 4,294; sh: 4,094; makefile: 2,629; lisp: 1,492; cs: 489; xml: 404; perl: 224; ruby: 156; java: 89
file content (41 lines) | stat: -rw-r--r-- 1,258 bytes parent folder | download | duplicates (3)
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
function printGameSettings()
{
//add human readable method
var human = {
	scavengers : function () {
		switch (scavengers) {
			case ULTIMATE_SCAVENGERS: return _("Ultimate Scavengers");
			case SCAVENGERS: return _("Scavengers");
			case NO_SCAVENGERS: return _("No Scavengers");
			}
		},

	alliancesType : function () {
		switch (alliancesType) {
			case NO_ALLIANCES: return _("No Alliances");
			case ALLIANCES: return _("Allow Alliances");
			case ALLIANCES_TEAMS: return _("Locked Teams");
			case ALLIANCES_UNSHARED: return _("Locked Teams, No Shared Research");
			}
		},

	powerType : function () {
		switch (powerType) {
			case 0: return _("Low Power Levels");
			case 1: return _("Medium Power Levels");
			case 2: return _("High Power Levels");
			}
		},

	baseType : function () {
		switch (baseType) {
			case CAMP_CLEAN: return _("Start with No Bases");
			case CAMP_BASE: return _("Start with Bases");
			case CAMP_WALLS: return _("Start with Advanced Bases");
			}
		},
	};

//	debug([mapName, human.scavengers(), human.alliancesType(), human.powerType(), human.baseType(), "T" + getMultiTechLevel(), version ].join("\n"));
	console([mapName, human.scavengers(), human.alliancesType(), human.powerType(), human.baseType() ].join("\n"));
}