Compare commits

..

2 commits

Author SHA1 Message Date
5f3e21f254 chore: adjusted rifleman animations 2026-01-31 23:10:32 +01:00
8023e8a5aa chore: added standards-complying this-> 2026-01-31 23:09:44 +01:00
4 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,4 @@
#include "enemy_wretched.h"
#include "scene/animation/animation_player.h"
#include "wave_survival/macros.h"
#include "wave_survival/npc_unit.h"
#include "wave_survival/patrol_path.h"
@ -20,9 +19,9 @@ void EnemyWretched::on_child_entered(Node *node) {
}
void EnemyWretched::ready() {
fsm->add_state(memnew(WretchedPatrolState));
fsm->add_state(memnew(WretchedChaseState));
fsm->add_state(memnew(WretchedAttackState));
this->fsm->add_state(memnew(WretchedPatrolState));
this->fsm->add_state(memnew(WretchedChaseState));
this->fsm->add_state(memnew(WretchedAttackState));
}
void EnemyWretched::_notification(int what) {

View file

@ -1,11 +1,11 @@
#ifndef ENEMY_WRETCHED_H
#define ENEMY_WRETCHED_H
#include "scene/animation/animation_player.h"
#include "wave_survival/enemy_body.h"
#include "wave_survival/state.h"
class PatrolPath;
class NpcUnit;
class AnimationPlayer;
class StateMachine;
class EnemyWretched : public EnemyBody {