Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
introcutscene.hpp
Go to the documentation of this file.
1#pragma once
2
6
7#include <vector>
8
15
17public:
19
24 bool update();
25
27
28 inline static const int START_TICK = 1;
29 inline static const int STOP_MOVING_TICK = START_TICK + 250;
30 inline static const int GATE_RAISE_TICK = STOP_MOVING_TICK + 30;
31 inline static const int GATE_STOP_RAISE_TICK = GATE_RAISE_TICK + 200;
32 inline static const int LIGHTNING_1_TICK = GATE_STOP_RAISE_TICK + 80;
33 inline static const int LIGHTNING_2_TICK = LIGHTNING_1_TICK + 50;
34 inline static const int LIGHTNING_3_TICK = LIGHTNING_2_TICK + 40;
35 inline static const int START_PLAYER_THEME_TICK = LIGHTNING_3_TICK + 110;
36 inline static const int EXIT_CUTSCENE_TICK = START_PLAYER_THEME_TICK + 240;
37
38 int ticks;
39
40 // just making everything public bc lazy
44 std::array<boost::optional<SharedObject>, MAX_POINT_LIGHTS> lights;
45};
Definition: introcutscene.hpp:16
EntityID pov_eid
Definition: introcutscene.hpp:42
static const int START_TICK
Definition: introcutscene.hpp:28
static const int GATE_RAISE_TICK
Definition: introcutscene.hpp:30
static const int LIGHTNING_2_TICK
Definition: introcutscene.hpp:33
int ticks
Definition: introcutscene.hpp:38
static const int START_PLAYER_THEME_TICK
Definition: introcutscene.hpp:35
bool update()
Definition: introcutscene.cpp:78
static const int STOP_MOVING_TICK
Definition: introcutscene.hpp:29
EntityID dm_eid
Definition: introcutscene.hpp:43
static const int GATE_STOP_RAISE_TICK
Definition: introcutscene.hpp:31
LoadIntroCutsceneEvent toNetwork()
Definition: introcutscene.cpp:246
IntroCutscene()
Definition: introcutscene.cpp:19
std::array< boost::optional< SharedObject >, MAX_POINT_LIGHTS > lights
Definition: introcutscene.hpp:44
static const int EXIT_CUTSCENE_TICK
Definition: introcutscene.hpp:36
static const int LIGHTNING_1_TICK
Definition: introcutscene.hpp:32
static const int LIGHTNING_3_TICK
Definition: introcutscene.hpp:34
ServerGameState state
Definition: introcutscene.hpp:41
The ServerGameState class contains all abstract game state data and logic for a single game state ins...
Definition: servergamestate.hpp:43
GameConfig getCutsceneConfig()
config to use for the servergamestate used for the cutscene, This mainly just needs to set the room f...
Definition: introcutscene.cpp:12
#define MAX_POINT_LIGHTS
Definition: constants.hpp:7
Definition: config.hpp:12
Definition: event.hpp:303
uint32_t EntityID
Global Object ID (when the server or client references an object with a particular EntityID,...
Definition: typedefs.hpp:9