Skip to content

Conversation

kevinfoley
Copy link
Contributor

…with explicit enum values

@luciusDXL
Copy link
Owner

Looks good so far, I will merge once I spend more time making sure the numbers match. :)

STATE_MOVE = 1u,
// Update our destination (generally moving towards the player).
STATE_TURN = 2u,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

@kevinfoley My opinion is that it would be cleaner, and more readable code if we just make a separate enum

So change the existing LogicAnimState to LogicAttackAnimState (or something like that)

and add a LogicThinkerAnimState with MOVE and TURN

Copy link
Contributor

@jerethk jerethk Nov 1, 2024

Choose a reason for hiding this comment

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

as discussed in Discord - this won't work because both modules use the same struct
Please ignore :-)

@jerethk
Copy link
Contributor

jerethk commented Nov 1, 2024

@kevinfoley looks like you also need to make a change in the actor_thinkerModuleInit method in actor.cpp
Currently it has thinkerMod->anim.state = STATE_FIRE1;
I guess that should be changed to "TURN"

@luciusDXL luciusDXL merged commit a9e4bd4 into luciusDXL:master Nov 1, 2024
1 check passed
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.

3 participants