R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
AnimationDatabase.hpp File Reference
#include <functional>
#include <initializer_list>
#include <unordered_map>
#include "../ECS/Components/AnimationSet.hpp"
Include dependency graph for AnimationDatabase.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  AnimDB
 

Typedefs

using AnimDB::AnimationFactory = std::function< ecs::AnimationSet()>
 Factory function type for animation set creation.
 

Functions

ecs::AnimationClip AnimDB::makeClip (std::initializer_list< ecs::Rectangle > frames, float duration=0.1f, bool loop=true, const std::string &nextClip="")
 Helper to create animation clips easily.
 
ecs::AnimationSet AnimDB::createPlayerAnimations ()
 Create player ship animations.
 
ecs::AnimationSet AnimDB::createOrbitalModuleAnimations ()
 Create drone (orbital module) animations.
 
ecs::AnimationSet AnimDB::createEnemyBasicAnimations ()
 Create basic enemy animations.
 
ecs::AnimationSet AnimDB::createEnemyWalkingAnimations ()
 Create walking enemy animations.
 
ecs::AnimationSet AnimDB::createBossBodyAnimations ()
 Create boss body animations.
 
ecs::AnimationSet AnimDB::createBossArmAnimations ()
 Create boss arm animations.
 
ecs::AnimationSet AnimDB::createPlayerBulletAnimations ()
 Create player bullet animations.
 
ecs::AnimationSet AnimDB::createEnemyBulletAnimations ()
 Create enemy bullet animations.
 
ecs::AnimationSet AnimDB::getAnimationSet (const std::string &entityType)
 Get an AnimationSet by entity type.
 

Variables

const std::unordered_map< std::string, AnimationFactoryAnimDB::FACTORIES
 Map of entity types to their animation factory functions.