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

GameObject.game #1

Open
JacobFischer opened this issue Nov 6, 2015 · 0 comments
Open

GameObject.game #1

JacobFischer opened this issue Nov 6, 2015 · 0 comments

Comments

@JacobFischer
Copy link
Member

Game objects currently have no reference to the game they are in, and they may need it for server-side logic.

A reference to the base game is not enough, as then they will need to cast it every time, which is annoying.

Instead Creer should, in the GameObject for each game it generates, create a game property that is of the type of the game it is generating. It should then be hooked up probably via BaseGameObject logic. A little hackish, but gets us the best results for AIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant