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

Refactor monster movement flag checks #35776

Merged

Conversation

ZhilkinSerg
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

Encapsulate monster movement flag checks into functions, so it would be easier to change from flags to properties later.

Describe the solution

See commit messages.

Additional context

I plan to use monster/mtype properties instead of flags for most frequently used flags (found with the help of #35740). That would allow to increase monster performance.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Nov 29, 2019
@ZhilkinSerg ZhilkinSerg force-pushed the refactor-monster-movement-flags branch from ce703da to 9bea131 Compare November 29, 2019 17:07
@kevingranade kevingranade merged commit 469cd33 into CleverRaven:master Dec 9, 2019
@ZhilkinSerg ZhilkinSerg deleted the refactor-monster-movement-flags branch December 9, 2019 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Monsters Monsters both friendly and unfriendly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants