Add multiplayer
The game now works! Host up a server and get some clients going and you can see multiple players moving around on the game board!
This commit is contained in:
@ -16,18 +16,23 @@ add_library(
|
||||
Player.cpp
|
||||
)
|
||||
|
||||
add_library(
|
||||
GameServer
|
||||
GameServer.hpp
|
||||
GameServer.cpp
|
||||
)
|
||||
|
||||
add_library(
|
||||
GameClient
|
||||
GameClient.hpp
|
||||
GameClient.cpp
|
||||
)
|
||||
|
||||
add_executable(
|
||||
cpp-console-game
|
||||
main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
cpp-console-game PRIVATE
|
||||
GameState
|
||||
conio
|
||||
eRPC
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
GameState PRIVATE
|
||||
Board
|
||||
@ -38,4 +43,23 @@ target_link_libraries(
|
||||
target_link_libraries(
|
||||
Player PRIVATE
|
||||
RandomUtils
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
GameServer PRIVATE
|
||||
GameState
|
||||
eRPC
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
GameClient PRIVATE
|
||||
eRPC
|
||||
conio
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
cpp-console-game PRIVATE
|
||||
GameServer
|
||||
GameClient
|
||||
eRPC
|
||||
)
|
Reference in New Issue
Block a user