Player reference
The ID of the current map
Timer for map change
Map of all enemies (other players), mapped from userID to PlayerInfo instance.
Instance of the game hud
Current player instance
Getter for the current map id
Getter for current time (purpose: when map change happens)
Getter for enemies currently occupying the map according to the server
Adds an Enemy to the map.
ID of the Enemy to be added.
PlayerInfo instance containing all information of Enemy.
Generate gameplay actions through packets received from the server.
the parsed packet received from the server.
Handles movement
Packet received from the server.
Handles death of player or enemy.
Array of PlayerInfo to be processed.
Handles teleportation, as well as respawning.
Packet received from the server.
Updates Player or Enemy information.
Old PlayerInfo to be processed.
New PlayerInfo to be processed.
Generated using TypeDoc
Class Purpose: Packet -> Game Logic Given a packet, generate gamelogic that should result from whatever the packet tells us.
Example: Server generated a MOVEMENT packet. Thus, we want to update the movements of an enemy because he's evidently moved.