Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Create a collection of attack modes #7

Closed
jrbasso opened this issue Oct 14, 2013 · 2 comments
Closed

Create a collection of attack modes #7

jrbasso opened this issue Oct 14, 2013 · 2 comments
Assignees

Comments

@jrbasso
Copy link
Member

jrbasso commented Oct 14, 2013

Create an object to hold all attack modes. This should lazy load the attacks from the config file (the alias needs to be added to the config).

It will avoid the attack mode be loaded for each player and it will dynamically be loaded without change the player code.

@ghost ghost assigned jrbasso Oct 14, 2013
@young-steveo
Copy link
Contributor

👍

@young-steveo
Copy link
Contributor

Actually, hang on: I checked the code, and the attack modes are already static: they are loaded once and stored as a property on the Player object, not on the prototype.

But, loading from config is still a good idea.

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

No branches or pull requests

2 participants