Compare commits
No commits in common. "5f3e21f254972acc0c14972fed879cf5c5d7340d" and "bc397b36640c960cbf0d2fb229a1d9e7d67256bc" have entirely different histories.
5f3e21f254
...
bc397b3664
4 changed files with 5 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
#include "enemy_wretched.h"
|
#include "enemy_wretched.h"
|
||||||
|
#include "scene/animation/animation_player.h"
|
||||||
#include "wave_survival/macros.h"
|
#include "wave_survival/macros.h"
|
||||||
#include "wave_survival/npc_unit.h"
|
#include "wave_survival/npc_unit.h"
|
||||||
#include "wave_survival/patrol_path.h"
|
#include "wave_survival/patrol_path.h"
|
||||||
|
|
@ -19,9 +20,9 @@ void EnemyWretched::on_child_entered(Node *node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnemyWretched::ready() {
|
void EnemyWretched::ready() {
|
||||||
this->fsm->add_state(memnew(WretchedPatrolState));
|
fsm->add_state(memnew(WretchedPatrolState));
|
||||||
this->fsm->add_state(memnew(WretchedChaseState));
|
fsm->add_state(memnew(WretchedChaseState));
|
||||||
this->fsm->add_state(memnew(WretchedAttackState));
|
fsm->add_state(memnew(WretchedAttackState));
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnemyWretched::_notification(int what) {
|
void EnemyWretched::_notification(int what) {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
#ifndef ENEMY_WRETCHED_H
|
#ifndef ENEMY_WRETCHED_H
|
||||||
#define ENEMY_WRETCHED_H
|
#define ENEMY_WRETCHED_H
|
||||||
|
|
||||||
#include "scene/animation/animation_player.h"
|
|
||||||
#include "wave_survival/enemy_body.h"
|
#include "wave_survival/enemy_body.h"
|
||||||
#include "wave_survival/state.h"
|
#include "wave_survival/state.h"
|
||||||
class PatrolPath;
|
class PatrolPath;
|
||||||
class NpcUnit;
|
class NpcUnit;
|
||||||
|
class AnimationPlayer;
|
||||||
class StateMachine;
|
class StateMachine;
|
||||||
|
|
||||||
class EnemyWretched : public EnemyBody {
|
class EnemyWretched : public EnemyBody {
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue