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

ship weapons as data #50

Open
yoel123 opened this issue Oct 12, 2020 · 0 comments
Open

ship weapons as data #50

yoel123 opened this issue Oct 12, 2020 · 0 comments

Comments

@yoel123
Copy link
Owner

yoel123 commented Oct 12, 2020

I think ship weapons can be data only, as all weapons function the same the only difference is they have different stats.

there might be a few functions for shooting different types of weapons but they practically work the same with the difference being stats.

that way ship can have an ArrayList of weapon names, and when you need a weapons data you call its row from the database by name.

maybe I shod make a weapon modal class (like item) so I can call stats like w.range or w.dmg etc etc.

ship upgrades that modify say range will just add to the range variable as modifier no need to change weapons data.

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