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 animation.cpp #73609

Merged
merged 6 commits into from
May 11, 2024
Merged

typified animation.cpp #73609

merged 6 commits into from
May 11, 2024

Conversation

PatrikLundell
Copy link
Contributor

Summary

None

Purpose of change

Add position typing to a new set of code.

Describe the solution

Go through animation.cpp and replace generic (tri)points with typed ones.
Make associated follow on changes in related code, with some short circuiting to stop it from ballooning even further.
Note that there should be no functional change.

Describe alternatives you've considered

Try to understand what types more (tri)points are. There are "offset" parameters, for instance. I've left these untyped as I'm not sure what they represent.

Try to understand if cata_tiles and/or sdl_tiles actually are used to serve both the reality bubble ((tri)point_bub_ms for the most part) as well as some OMT coordinate system which may be relative to something or be absolute (to serve the overmap display), and, if that's the case, whether they ought to remain untyped or get dual operations for the operations that are used for both purposes.

Testing

Limited to loading a save, walk away with a bunch of companions in tow for a number of overmap and encounter some wildlife, teleport back, and climb the roof.

Additional context

@github-actions github-actions bot added Code: Tests Measurement, self-control, statistics, balancing. [C++] Changes (can be) made in C++. Previously named `Code` labels May 9, 2024
@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 labels May 9, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label May 10, 2024
@kevingranade kevingranade merged commit 15c4984 into CleverRaven:master May 11, 2024
19 of 26 checks passed
@PatrikLundell PatrikLundell deleted the typify branch May 11, 2024 21:06
GuardianDll added a commit to GuardianDll/Cataclysm-DDA that referenced this pull request May 15, 2024
Squashed commit:

[795be74] TamableWildlife Skunk Friends (CleverRaven#73645)

[b345d8e] Made a change to the popup to fix text being cut off at low resolutions. (CleverRaven#73678)

[0a771f6] [Magiclysm] New joke spell (CleverRaven#73251)

* Spell creation plus scroll plus addition to existing book plus spawn for scroll

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: TheShadowFerret <[email protected]>

* fix ellipsis

* fix formatting error

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: TheShadowFerret <[email protected]>

[9017632] Increase feral clairsentient dodge

[0adfdf1] [MoM] Normalize feral biokinetic HP (CleverRaven#73635)

* Fix HP

* Fix HP

[1a8080a] Added Bronze Wood Saw to Misc Repair Kit Craft (CleverRaven#73654)

[59351db] #include vector in cata_imgui.h (CleverRaven#73681)

[cabc0eb] style

[e876fae] Provided 3D camp construction + Livestock 2 example

[bc9c909] Use dummy parser for attack_vector to fix string extraction script error (CleverRaven#73659)

[15c4984] typified animation.cpp (CleverRaven#73609)

[548059a] test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants