cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
904 stars 115 forks source link

Refactor all state changes as events #225

Closed cxong closed 9 years ago

cxong commented 10 years ago

A prerequisite for #36

List of events:

Everything on CommandActor:

In UpdateMobileObjects:

Triggers:

Other:

cxong commented 10 years ago

Need another refactor: all actors in the game identifiable by ID This is required to refactor weapon firing into events, as the player/weapon needs to be uniquely identifiable

cxong commented 9 years ago

A lot of state changes have been eventified, but only the ones that are server-authoritative need to be. The rest can be entirely client-controlled for responsiveness.