GAME namespace JJ2+

Game modes, their custom variants, game states and connection types

Enums

enum Connection { LOCAL, ONLINE, LAN } JJ2+
Who can join the game
enum Custom { NOCUSTOM = 0, RT = 1, LRS = 2, XLRS = 3, PEST = 4, TB = 11, JB = 12, DCTF = 13, FR = 14, TLRS = 15, DOM = 16, HEAD = 17 } JJ2+
Custom game mode built on top of a base mode
enum Mode { SP = 0, COOP = 1, BATTLE = 2, CTF = 5, TREASURE = 4, RACE = 3 } JJ2+
Base game mode, regardless of any custom mode built on top of it
enum State { STOPPED = 4, STARTED = 0, PAUSED = 3, PREGAME = 1, OVERTIME = 2 } JJ2+
State of a multiplayer game

Enum documentation

enum GAME::Connection JJ2+

Who can join the game

Enumerators
LOCAL

Local game only

ONLINE

Joinable over the internet

LAN

Joinable over the local network

enum GAME::Custom JJ2+

Custom game mode built on top of a base mode

Enumerators
NOCUSTOM

No custom mode, only the base mode applies

RT

Roast tag

LRS

Last rabbit standing

XLRS

Extended last rabbit standing

PEST

Pestilence

TB

Team battle

JB

Jailbreak

DCTF

Death capture the flag

FR

Flag run

TLRS

Team last rabbit standing

DOM

Domination

HEAD

Head hunters

enum GAME::Mode JJ2+

Base game mode, regardless of any custom mode built on top of it

Enumerators
SP

Single player

COOP

Cooperative

BATTLE

Battle

CTF

Capture the flag

TREASURE

Treasure hunt

RACE

Race

enum GAME::State JJ2+

State of a multiplayer game

Enumerators
STOPPED

Game is stopped

STARTED

Game is running

PAUSED

Game is paused, only possible with a time limit

PREGAME

Waiting for the game to start

OVERTIME

Time limit ran out with no winner yet