Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
Server Class Reference

#include <server.hpp>

Public Member Functions

 Server (boost::asio::io_context &io_context, GameConfig config)
 
std::chrono::milliseconds doTick ()
 
EventList getAllClientEvents ()
 
void updateGameState (const EventList &events)
 
void sendUpdateToAllClients (Event event)
 
void sendLightSourceUpdates (EntityID playerID)
 
void sendSoundCommands ()
 

Static Public Member Functions

static EntityID genNewEID ()
 

Constructor & Destructor Documentation

◆ Server()

Server::Server ( boost::asio::io_context &  io_context,
GameConfig  config 
)

Member Function Documentation

◆ doTick()

std::chrono::milliseconds Server::doTick ( )

Do one game tick

Returns
Time in MS to wait until starting next tick

◆ genNewEID()

EntityID Server::genNewEID ( )
static

◆ getAllClientEvents()

EventList Server::getAllClientEvents ( )

◆ sendLightSourceUpdates()

void Server::sendLightSourceUpdates ( EntityID  playerID)

◆ sendSoundCommands()

void Server::sendSoundCommands ( )

◆ sendUpdateToAllClients()

void Server::sendUpdateToAllClients ( Event  event)

◆ updateGameState()

void Server::updateGameState ( const EventList events)

The documentation for this class was generated from the following files: