34#include "crab/collision.h"
35#include "crab/timer.h"
36#include "crab/ai/spriteai.h"
37#include "crab/ai/SpriteConstant.h"
38#include "crab/animation/animset.h"
39#include "crab/animation/PopUp.h"
40#include "crab/level/LevelExit.h"
44class PathfindingAgent;
92 void resetFrame(
const pyrodactyl::people::PersonState &pst);
96 void clip(
const Rect &rect) { _clip = rect; }
97 void boxV(
const Rect &rect) { _boxV = rect; }
98 void boxD(
const Rect &rect) { _boxD = rect; }
123 void visible(
bool val) {
124 _visible.result(val);
128 return _visible.result();
156 void resolveCollide();
159 void resolveInside(
Rect collider);
164 _aiData._dest._active =
false;
170 void xVel(
const float &val) {
171 _target.x = val * _velMod.x;
173 void yVel(
const float &val) {
174 _target.y = val * _velMod.y;
201 const ImageKey &img() {
205 Rect dialogClip(
const pyrodactyl::people::PersonState &state) {
206 return _animSet._walk.dialogClip(state);
209 void dialogUpdateClip(
const pyrodactyl::people::PersonState &state) {
210 _animSet._walk.updateClip(state);
214 return _popup.show();
224 double distSq(
const Sprite &s);
226 void effectImg(
bool vis) {
227 _imgEff._visible = vis;
231 return _animSet._fight.lastFrame();
245 void walk(
const bool &reset);
246 void walk(
const pyrodactyl::people::PersonState &pst);
248 void updateFrame(
const pyrodactyl::people::PersonState &pst,
const bool &repeat =
false);
251 void updateMove(
const pyrodactyl::input::FightAnimationType &combo);
252 void forceUpdateMove(
const pyrodactyl::input::FightAnimationType &combo);
254 void updateMove(
const uint &index);
255 void forceUpdateMove(
const uint &index);
258 void setDestPathfinding(
const Vector2i &dest,
bool reachable =
true);
267 void animate(
const pyrodactyl::people::PersonState &pst);
287 void saveState(rapidxml::xml_document<> &doc, rapidxml::xml_node<char> *root);
288 void loadState(rapidxml::xml_node<char> *node);
Definition: PathfindingAgent.h:113
void reset()
Resets the algorithm.
Definition: GameEventInfo.h:44
Definition: triggerset.h:40
Definition: ParagraphData.h:40
Definition: Rectangle.h:42
Definition: movement.h:42
Definition: spriteai.h:59
Definition: SpriteConstant.h:57
Definition: imageeffect.h:40