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

Feat/missile class composition #475

Merged
merged 10 commits into from
Mar 12, 2020

Conversation

grantramsay
Copy link
Contributor

@grantramsay grantramsay commented Mar 1, 2020

  • Missile attributes/characteristics are now specified in one place, and are initialised in the missile constructor (closer to proper composition).
  • Missile attributes now use nested classes instead of friendship for private member access.
  • Allow setting different speeds for missiles.
  • Added a reference to missiles graphics on each level to avoid having to check every actor in world to find missile graphics on a level.
  • Added town portal spell.
  • Put missile max range within missile movement attribute

A lot of the changes are just whitespace from the "Tidy namespaces" commit

Missile attributes/characteristics are now specified in one place, and are initialised in the missile constructor (proper composition)
Missile attributes now use nested classes instead of friendship for private member access
@grantramsay grantramsay force-pushed the feat/missile-class-composition branch from c706c56 to 9efcb17 Compare March 1, 2020 09:28
@grantramsay
Copy link
Contributor Author

Will tidy this up and fix build later

Add a reference to missiles graphics on each level to avoid having to check every actor in world to find missile graphics on a level
@grantramsay grantramsay force-pushed the feat/missile-class-composition branch from 9efcb17 to 9a3de11 Compare March 2, 2020 01:50
Missiles that don't move shouldn't be concerned with range
@grantramsay grantramsay force-pushed the feat/missile-class-composition branch from d6ea7a0 to aaa6347 Compare March 3, 2020 07:20
Copy link
Owner

@wheybags wheybags left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking nice, especially adding the town portal spell :)
Could you add a line about adding town portal to the changelog?

apps/freeablo/faworld/missile/missilegraphic.cpp Outdated Show resolved Hide resolved
apps/freeablo/faworld/gamelevel.cpp Show resolved Hide resolved
apps/freeablo/faworld/missile/missileactorengagement.cpp Outdated Show resolved Hide resolved
apps/freeablo/faworld/missile/missilecreation.cpp Outdated Show resolved Hide resolved
Update changelog
Any player can use town portal
Change mMissileGraphics to std::unordered_set
Add comment on not using mMissileGraphics for game logic
Add TODO for removing "additionalConstraints" after GameObject refactor
Use std::numeric_limits<int32_t>::max() over INT32_MAX
@grantramsay grantramsay force-pushed the feat/missile-class-composition branch from a2d0016 to d55b60a Compare March 8, 2020 01:36
@wheybags
Copy link
Owner

Thanks!

@wheybags wheybags merged commit e69dc55 into wheybags:master Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants