-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into feat/more-lights
- Loading branch information
Showing
105 changed files
with
2,092 additions
and
412 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
|
||
#include "server/game/servergamestate.hpp" | ||
#include "shared/utilities/serialize_macro.hpp" | ||
#include "shared/game/sharedgamestate.hpp" | ||
|
||
#include <vector> | ||
|
||
/** | ||
* @brief config to use for the servergamestate used for the cutscene, | ||
* This mainly just needs to set the room file to load the cutscene room | ||
* from. I dont think the other values will really matter. | ||
*/ | ||
GameConfig getCutsceneConfig(); | ||
|
||
class IntroCutscene { | ||
public: | ||
IntroCutscene(); | ||
|
||
/** | ||
* update to the next frame of the cutscene | ||
* @returns true if the cutscene is over | ||
*/ | ||
bool update(); | ||
|
||
LoadIntroCutsceneEvent toNetwork(); | ||
|
||
|
||
// just making everything public bc lazy | ||
ServerGameState state; | ||
EntityID pov_eid; | ||
EntityID dm_eid; | ||
std::array<boost::optional<SharedObject>, MAX_POINT_LIGHTS> lights; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#pragma once | ||
|
||
#include "server/game/item.hpp" | ||
#include <chrono> | ||
|
||
class Mirror : public Item { | ||
public: | ||
|
||
/** | ||
* @brief Mirror constructor | ||
* @param corner Corner position of the Mirror | ||
* @param dimensions Dimensions of the Mirror | ||
*/ | ||
Mirror(glm::vec3 corner, glm::vec3 dimensions); | ||
|
||
/** | ||
* @brief Using the mirror causes it to be held for a few seconds | ||
* @param other Player object that uses the mirror | ||
* @param state Reference to the server's ServerGameState instance | ||
* @param itemSelected Mirror's item index in the player's inventory | ||
*/ | ||
void useItem(Object* other, ServerGameState& state, int itemSelected) override; | ||
|
||
void dropItem(Object* other, ServerGameState& state, int itemSelected, float dropDistance) override; | ||
|
||
/** | ||
* @brief Determines whether the mirror has been used for the mirror holding | ||
* duration and updated the remaining time it will be used. | ||
* @return true if the mirror has been used for the specified duration. | ||
*/ | ||
bool timeOut(); | ||
|
||
/** | ||
* @brief Stop holding the mirror. | ||
* @note This should be called when the use duration times out OR when the player | ||
* selects a different item in their inventory. | ||
* @param state Reference to the server's ServerGameState instance | ||
*/ | ||
void revertEffect(ServerGameState& state); | ||
private: | ||
/** | ||
* @brief The time at which the mirror was last used | ||
*/ | ||
std::chrono::time_point<std::chrono::system_clock> used_time; | ||
|
||
/** | ||
* @brief The last Player that used this mirror object. | ||
*/ | ||
Player* used_player; | ||
}; |
Oops, something went wrong.