Skip to content

Commit

Permalink
Moved the minigame gamemodes to separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Mar 28, 2024
1 parent 575b989 commit 54e64fa
Show file tree
Hide file tree
Showing 15 changed files with 660 additions and 575 deletions.
5 changes: 5 additions & 0 deletions src/common/GameMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,9 @@ class CGameMode
bool fReverseScoring;
};

void RemovePlayersButTeam(short teamid);
bool RemoveTeam(short teamid);
void SetupScoreBoard(bool fOrderMatters);
void ShowScoreBoard();

#endif // GAMEMODE_H
11 changes: 10 additions & 1 deletion src/smw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,20 @@ target_sources(smw PRIVATE
menu/network/NetRoomMenu.cpp
menu/network/NetRoomMenu.h
menu/network/NetServersMenu.cpp
menu/network/NetServersMenu.h
menu/network/NetServersMenu.h

gamemodes/MiniBoss.h
gamemodes/MiniBoss.cpp
gamemodes/MiniBoxes.h
gamemodes/MiniBoxes.cpp
gamemodes/MiniPipe.h
gamemodes/MiniPipe.cpp
)

add_subdirectory(ui)

target_compile_features(smw PUBLIC cxx_std_14)

if(NO_NETWORK)
target_compile_definitions(smw PRIVATE NETWORK_DISABLED)
else()
Expand Down
1 change: 1 addition & 0 deletions src/smw/GSGameplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "ResourceManager.h"
#include "Score.h"
#include "sfx.h"
#include "gamemodes/MiniBoss.h"

#include <algorithm>
#include <cmath>
Expand Down
3 changes: 3 additions & 0 deletions src/smw/GSMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#include "MapList.h"
#include "ResourceManager.h"
#include "Score.h"
#include "gamemodes/MiniBoss.h"
#include "gamemodes/MiniBoxes.h"
#include "gamemodes/MiniPipe.h"
#include "ui/MI_BonusWheel.h"
#include "ui/MI_MapBrowser.h"
#include "ui/MI_MapField.h"
Expand Down
Loading

0 comments on commit 54e64fa

Please sign in to comment.