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

Unify Game State Storage #77

Open
xavierholt opened this issue Oct 1, 2017 · 1 comment
Open

Unify Game State Storage #77

xavierholt opened this issue Oct 1, 2017 · 1 comment
Labels

Comments

@xavierholt
Copy link
Contributor

The LogicEngine class stores game state in a bunch of different arrays:

private Monster[][] listOfMonsters;
private Item[][] listOfItems;
private GamePiece[][] floor;
private int[] playerPosition;

This seems liable to cause all sorts of gross code. Make floor the source of truth. A floor tile can have a reference to the object (if any) that's occupying it.

200 XP

@brianslee
Copy link
Contributor

W18 Ok 200 Points

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

2 participants