ScummVM API documentation
Crab::pyrodactyl::anim::Sprite Class Reference

Public Member Functions

void visible (bool val)
 
bool visible ()
 
void calcProperties (pyrodactyl::event::Info &info)
 
void x (int X)
 
void y (int Y)
 
int x ()
 
int y ()
 
void walkPattern (const pyrodactyl::ai::MovementSet &set)
 
void move (const pyrodactyl::ai::SpriteConstant &sc)
 
void resolveCollide ()
 
void resolveInside (Rect collider)
 
void stop ()
 
void inputStop ()
 
void xVel (const float &val)
 
void yVel (const float &val)
 
float xVel ()
 
float yVel ()
 
Vector2f vel ()
 
const Common::Stringid ()
 
int w ()
 
int h ()
 
const ImageKey & img ()
 
Rect dialogClip (const pyrodactyl::people::PersonState &state)
 
void dialogUpdateClip (const pyrodactyl::people::PersonState &state)
 
bool popupShow ()
 
Rect boundRect ()
 
Rect boxV ()
 
Rect boxD ()
 
Rect posRect ()
 
Rect rangeRect (const Rect &bounds, const Range &range)
 
Vector2i camFocus ()
 
double distSq (const Sprite &s)
 
void effectImg (bool vis)
 
bool lastFrame ()
 
bool takingDamage (Sprite &sp, const pyrodactyl::ai::SpriteConstant &sc)
 
void takeDamage (pyrodactyl::event::Info &info, Sprite &s)
 
void exchangeDamage (pyrodactyl::event::Info &info, Sprite &s, const pyrodactyl::ai::SpriteConstant &sc)
 
void load (rapidxml::xml_node< char > *node, Common::Array< Common::Path > &animations)
 
void internalEvents (pyrodactyl::event::Info &info, const Common::String &player_id, Common::Array< pyrodactyl::event::EventResult > &result, Common::Array< pyrodactyl::event::EventSeqInfo > &end_seq)
 
void draw (pyrodactyl::event::Info &info, const Rect &camera)
 
void drawPopup (pyrodactyl::ui::ParagraphData &pop, const Rect &camera)
 
void walk (const bool &reset)
 
void walk (const pyrodactyl::people::PersonState &pst)
 
void updateFrame (const pyrodactyl::people::PersonState &pst, const bool &repeat=false)
 
void assignFrame ()
 
void updateMove (const pyrodactyl::input::FightAnimationType &combo)
 
void forceUpdateMove (const pyrodactyl::input::FightAnimationType &combo)
 
void updateMove (const uint &index)
 
void forceUpdateMove (const uint &index)
 
void setDestPathfinding (const Vector2i &dest, bool reachable=true)
 
void handleEvents (pyrodactyl::event::Info &info, const Rect &camera, const pyrodactyl::ai::SpriteConstant &sc, const Common::Event &event)
 
void animate (pyrodactyl::event::Info &info)
 
void animate (const pyrodactyl::people::PersonState &pst)
 
void attack (pyrodactyl::event::Info &info, Sprite &targetSp, const pyrodactyl::ai::SpriteConstant &sc)
 
void flee (pyrodactyl::event::Info &info, Common::Array< pyrodactyl::level::Exit > &areaExit, const pyrodactyl::ai::SpriteConstant &sc)
 
void flyAround (const Rect &camera, const pyrodactyl::ai::SpriteConstant &sc)
 
void moveToDest (pyrodactyl::event::Info &info, const pyrodactyl::ai::SpriteConstant &sc)
 
void moveToDestPathfinding (pyrodactyl::event::Info &info, const pyrodactyl::ai::SpriteConstant &sc)
 
bool moveToLoc (Vector2i &dest, const float &vel, const pyrodactyl::ai::SpriteConstant &sc)
 
bool moveToLocPathfinding (Vector2i &dest, const float &vel, const pyrodactyl::ai::SpriteConstant &sc)
 
void saveState (rapidxml::xml_document<> &doc, rapidxml::xml_node< char > *root)
 
void loadState (rapidxml::xml_node< char > *node)
 

Public Attributes

pyrodactyl::ai::SpriteAIData _aiData
 
PathfindingAgent _pathing
 
Vector2f _velMod
 
int _layer
 
bool _hover
 
Common::List< CollisionData_collideData
 

Protected Member Functions

void resetFrame (const pyrodactyl::people::PersonState &pst)
 
bool fightCollide (Rect hitbox, Rect enemy_bounds, Range &range, const pyrodactyl::ai::SpriteConstant &sc)
 
bool damageValid (Sprite &s, const pyrodactyl::ai::SpriteConstant &sc)
 
void clip (const Rect &rect)
 
void boxV (const Rect &rect)
 
void boxD (const Rect &rect)
 

Protected Attributes

Common::String _id
 
Vector2i _pos
 
Vector2f _vel
 
Vector2f _target
 
ImageKey _image
 
Vector2i _imgSize
 
Rect _clip
 
Rect _boxV
 
Rect _boxD
 
Direction _dir
 
ImageEffect _imgEff
 
AnimSet _animSet
 
pyrodactyl::event::TriggerSet _visible
 
pyrodactyl::input::FightInput _input
 
bool _damageDone
 
PopUpCollection _popup
 

The documentation for this class was generated from the following file: