Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor all state changes as events #225

Closed
12 tasks done
cxong opened this issue Feb 27, 2014 · 2 comments
Closed
12 tasks done

Refactor all state changes as events #225

cxong opened this issue Feb 27, 2014 · 2 comments
Assignees
Labels

Comments

@cxong
Copy link
Owner

cxong commented Feb 27, 2014

A prerequisite for #36

List of events:

Everything on CommandActor:

  • Position
  • dx/dy (only for dead reckoning)
  • last CMD
  • direction
  • shooting
  • objective update
  • damage
  • object pickup

In UpdateMobileObjects:

  • Object expiry

Triggers:

  • Trigger, reset etc.

Other:

  • Exit/pickup start, end
  • game end
@cxong cxong added this to the 0.5.5 milestone Feb 27, 2014
@cxong cxong added the refactor label Feb 27, 2014
@cxong cxong mentioned this issue Feb 27, 2014
6 tasks
cxong added a commit that referenced this issue Mar 3, 2014
Refactor net input utility functions
Add game start event (#225)
cxong added a commit that referenced this issue Mar 15, 2014
Add id to MobileObject to destroy by id
cxong added a commit that referenced this issue Mar 16, 2014
Refactor handling of game events into own source
@cxong
Copy link
Owner Author

cxong commented Apr 13, 2014

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 added a commit that referenced this issue Apr 13, 2014
Actors referenced by index and recycled
cxong added a commit that referenced this issue Apr 17, 2014
Reuse array elements for fast item access
Items can no longer be referred to from pointers,
only using integer IDs which are also array indices.
This also means changing tile things to arrays.

Add CArrayReserve
Optimise CArrayDelete using memmove

Fix memory leak with AStar path

Fix high scores not displayed when playing last level

Fix some other memory leaks
@cxong cxong modified the milestones: Wishlist, 0.5.5, 0.5.6 May 4, 2014
@cxong cxong modified the milestones: Wishlist, 0.5.6 Jun 4, 2014
@cxong cxong modified the milestones: 0.5.7, Wishlist Jul 24, 2014
@cxong cxong modified the milestones: 0.5.7, 0.5.8 Nov 9, 2014
@cxong cxong modified the milestones: Deathmatch, 0.5.9 Jan 27, 2015
cxong added a commit that referenced this issue Jun 1, 2015
cxong added a commit that referenced this issue Jun 2, 2015
Service enet client in loop (#36)
cxong added a commit that referenced this issue Jun 11, 2015
Netify exploration objective (#36)
@cxong cxong self-assigned this Jun 12, 2015
cxong added a commit that referenced this issue Jun 14, 2015
Refactor add pickup events (#225)
cxong added a commit that referenced this issue Jun 17, 2015
cxong added a commit that referenced this issue Jun 21, 2015
Fix pickup objective and ammo sounds (#36)
cxong added a commit that referenced this issue Jun 27, 2015
@cxong
Copy link
Owner Author

cxong commented Jun 28, 2015

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.

@cxong cxong closed this as completed Jun 28, 2015
cxong added a commit that referenced this issue Jun 30, 2015
cxong added a commit that referenced this issue Jun 30, 2015
cxong added a commit that referenced this issue Jul 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant