|
R-Type
Distributed multiplayer game engine in C++
|
Typedefs | |
| using | AnimationFactory = std::function< ecs::AnimationSet()> |
| Factory function type for animation set creation. | |
Functions | |
| ecs::AnimationClip | 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 | createPlayerAnimations () |
| Create player ship animations. | |
| ecs::AnimationSet | createOrbitalModuleAnimations () |
| Create drone (orbital module) animations. | |
| ecs::AnimationSet | createEnemyBasicAnimations () |
| Create basic enemy animations. | |
| ecs::AnimationSet | createEnemyWalkingAnimations () |
| Create walking enemy animations. | |
| ecs::AnimationSet | createBossBodyAnimations () |
| Create boss body animations. | |
| ecs::AnimationSet | createBossArmAnimations () |
| Create boss arm animations. | |
| ecs::AnimationSet | createPlayerBulletAnimations () |
| Create player bullet animations. | |
| ecs::AnimationSet | createEnemyBulletAnimations () |
| Create enemy bullet animations. | |
| ecs::AnimationSet | getAnimationSet (const std::string &entityType) |
| Get an AnimationSet by entity type. | |
Variables | |
| const std::unordered_map< std::string, AnimationFactory > | FACTORIES |
| Map of entity types to their animation factory functions. | |
| using AnimDB::AnimationFactory = typedef std::function<ecs::AnimationSet()> |
Factory function type for animation set creation.
Definition at line 210 of file AnimationDatabase.hpp.
|
inline |
Create boss arm animations.
Definition at line 160 of file AnimationDatabase.hpp.
References ecs::AnimationSet::addClip(), and makeClip().

|
inline |
Create boss body animations.
Definition at line 139 of file AnimationDatabase.hpp.
References ecs::AnimationSet::addClip(), and makeClip().

|
inline |
Create basic enemy animations.
Definition at line 82 of file AnimationDatabase.hpp.
References ecs::AnimationSet::addClip(), and makeClip().

|
inline |
Create enemy bullet animations.
Definition at line 198 of file AnimationDatabase.hpp.
References ecs::AnimationSet::addClip(), and makeClip().

|
inline |
Create walking enemy animations.
Definition at line 112 of file AnimationDatabase.hpp.
References ecs::AnimationSet::addClip(), and makeClip().

|
inline |
Create drone (orbital module) animations.
Definition at line 56 of file AnimationDatabase.hpp.
References ecs::AnimationSet::addClip(), and makeClip().
Referenced by ecs::PrefabFactory::createOrbitalModule().

|
inline |
Create player ship animations.
Definition at line 35 of file AnimationDatabase.hpp.
References ecs::AnimationSet::addClip(), and makeClip().
Referenced by server::GameLogic::spawnPlayer().

|
inline |
Create player bullet animations.
Definition at line 178 of file AnimationDatabase.hpp.
References ecs::AnimationSet::addClip(), and makeClip().
Referenced by ecs::PrefabFactory::createProjectile(), and ecs::WeaponSystem::createProjectile().

|
inline |
Get an AnimationSet by entity type.
| entityType | Type identifier (e.g., "player", "enemy_basic") |
Definition at line 233 of file AnimationDatabase.hpp.
References ecs::AnimationSet::addClip(), FACTORIES, and makeClip().

|
inline |
Helper to create animation clips easily.
| frames | Initializer list of frame rectangles |
| duration | Duration per frame in seconds |
| loop | Whether animation loops |
| nextClip | Next animation clip to play after completion |
Definition at line 25 of file AnimationDatabase.hpp.
Referenced by createBossArmAnimations(), createBossBodyAnimations(), createEnemyBasicAnimations(), createEnemyBulletAnimations(), createEnemyWalkingAnimations(), createOrbitalModuleAnimations(), createPlayerAnimations(), createPlayerBulletAnimations(), and getAnimationSet().
|
inline |
Map of entity types to their animation factory functions.
Use this to quickly get an AnimationSet for any entity type.
Definition at line 217 of file AnimationDatabase.hpp.
Referenced by getAnimationSet().