1 #ifndef CORE_BATTLES_MOVEANIMATION_HPP
2 #define CORE_BATTLES_MOVEANIMATION_HPP
4 #include <BLIB/Graphics/Animation2D.hpp>
5 #include <BLIB/Render/Scenes/CodeScene.hpp>
6 #include <BLIB/Resources.hpp>
40 void init(bl::rc::scene::CodeScene* scene);
80 bl::gfx::Animation2D background;
81 bl::gfx::Animation2D foreground;
85 bool init(bl::engine::Engine& engine, bl::rc::scene::CodeScene* scene,
User user,
88 bool finished()
const;
91 bl::engine::Engine& engine;
92 bl::rc::scene::CodeScene* scene;
94 Anim opponentAnims[4];
Core classes and functionality for both the editor and game.
Utility for rendering move animations.
void renderBackground(bl::rc::scene::CodeScene::RenderContext &ctx)
Renders the move animation background.
void ensureLoaded(const pplmn::BattlePeoplemon &player, const pplmn::BattlePeoplemon &opponent)
Loads the move animations into the resource manager for the given peoplemon.
MoveAnimation(bl::engine::Engine &engine)
Construct a new Move Animation helper.
void playAnimation(User user, pplmn::MoveId move)
Begins playing the given move animation.
bool completed() const
Returns whether or not the animation has completed playing.
void init(bl::rc::scene::CodeScene *scene)
Initializes the animations.
User
Which peoplemon is using the move.
void renderForeground(bl::rc::scene::CodeScene::RenderContext &ctx)
Renders the move animation foreground.
Represents a Peoplemon in battle. Stores some extra state that only exists in battle....