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

typified creature.h and monster.h #78565

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

PatrikLundell
Copy link
Contributor

Summary

None

Purpose of change

Replace usage of untyped coordinates with typed ones.

Describe the solution

Changed operations in creature.h and monster.h to using typed coordinates and adjusting usages of those to use typed coordinates. A large part was to change usage of .pos() to .pos_bub().
There was also a bit of change from using pos(_bub).[x/y/z] to posx/y/z as a simplification.

Describe alternatives you've considered

Testing

As there were no functional changes, there's no particular thing to test.
Loaded save, walked up ramp, jumped into car, drove through hay bales, ran over zombie corpse with inventory, ran over turkey, crashed into stationary vehicle. Nothing odd seen.

Additional context

The continuation of this phase will be to deal with character.h and npc.h (avatar.h has been processed earlier), and then their .cpp files. Since the project uses the practice of dumping implementation into "random" files rather than the corresponding .cpp files a lot will probably be missed, and so will have to be dealt with in future alphabetic file processing.

@github-actions github-actions bot added NPC / Factions NPCs, AI, Speech, Factions, Ownership Info / User Interface Game - player communication, menus, etc. Bionics CBM (Compact Bionic Modules) Map / Mapgen Overmap, Mapgen, Map extras, Map display Vehicles Vehicles, parts, mechanics & interactions Crafting / Construction / Recipes Includes: Uncrafting / Disassembling Code: Tests Measurement, self-control, statistics, balancing. [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. Melee Melee weapons, tactics, techniques, reach attack Items: Archery Bows, crossbows, arrows, bolts Mechanics: Enchantments / Spells Enchantments and spells Items: Armor / Clothing Armor and clothing EOC: Effects On Condition Anything concerning Effects On Condition labels Dec 14, 2024
@github-actions github-actions bot requested a review from KorGgenT December 14, 2024 15:19
@github-actions github-actions bot added json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Dec 14, 2024
PatrikLundell and others added 3 commits December 16, 2024 07:47
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions and removed astyled astyled PR, label is assigned by github actions labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BasicBuildPassed This PR builds correctly, label assigned by github actions Bionics CBM (Compact Bionic Modules) [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. Crafting / Construction / Recipes Includes: Uncrafting / Disassembling EOC: Effects On Condition Anything concerning Effects On Condition Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. Info / User Interface Game - player communication, menus, etc. Items: Archery Bows, crossbows, arrows, bolts Items: Armor / Clothing Armor and clothing json-styled JSON lint passed, label assigned by github actions Map / Mapgen Overmap, Mapgen, Map extras, Map display Mechanics: Enchantments / Spells Enchantments and spells Melee Melee weapons, tactics, techniques, reach attack Monsters Monsters both friendly and unfriendly. NPC / Factions NPCs, AI, Speech, Factions, Ownership Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant