|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
#include <EntityBuilder.hpp>
Classes | |
| struct | ParallaxDef |
| struct | SpriteAnimDef |
Public Attributes | |
| std::string | id |
| Enemy type identifier. | |
| std::string | tag {} |
| Template tag for entity differentiation. | |
| Vec2f | position {0.0f, 0.0f} |
| Spawn position. | |
| float | rotation {0.0f} |
| Spawn rotation. | |
| Vec2f | scale {1.0f, 1.0f} |
| Spawn scale. | |
| bool | withVelocity {false} |
| Whether to add Velocity component. | |
| ecs::components::Velocity | velocity {} |
| Initial velocity. | |
| ecs::components::Sprite | sprite {} |
| Sprite data. | |
| bool | withAnimation |
| Whether to add Animation component. | |
| ecs::components::Animation | animation {} |
| Initial animation data. | |
| bool | withParallax |
| Whether to add ParallaxLayer component. | |
| ecs::components::ParallaxLayer | parallax {} |
| Parallax layer data. | |
Static Public Attributes | |
| static constexpr ParallaxDef | kParallaxLvl1_1 { "assets/backgrounds/lvl1/stars_far.png", 10.0f, {-50.0f, 0.0f}, 200, 100.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl1_2 { "assets/backgrounds/lvl1/stars_near.png", 20.0f, {-50.0f, 0.0f}, 255, 300.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl2_1 { "assets/backgrounds/lvl2/moon_back.png", 10.0f, {0.0f, 0.0f}, 200, 80.0f, 1200.0f, {1.0f, 1.0f}, 1300, 720 } |
| static constexpr ParallaxDef | kParallaxLvl2_2 { "assets/backgrounds/lvl2/moon_earth.png", 25.0f, {-30.0f, 0.0f}, 255, 150.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl2_3 { "assets/backgrounds/lvl2/moon_floor.png", 12.0f, {-20.0f, 0.0f}, 200, 60.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl2_4 { "assets/backgrounds/lvl2/moon_front.png", 18.0f, {-40.0f, 0.0f}, 200, 90.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl2_5 { "assets/backgrounds/lvl2/moon_mid.png", 20.0f, {-25.0f, 0.0f}, 255, 70.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl2_6 { "assets/backgrounds/lvl2/moon_sky.png", 10.0f, {-15.0f, 0.0f}, 200, 50.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl3_1 { "assets/backgrounds/lvl3/Sky_back_mountain.png", 15.0f, {-20.0f, 0.0f}, 255, 60.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl3_2 { "assets/backgrounds/lvl3/sky_cloud_floor_2.png", 22.0f, {-35.0f, 0.0f}, 200, 85.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl3_3 { "assets/backgrounds/lvl3/sky_cloud_floor.png", 18.0f, {-25.0f, 0.0f}, 255, 70.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl3_4 { "assets/backgrounds/lvl3/Sky_cloud_single.png", 20.0f, {-30.0f, 0.0f}, 255, 90.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl3_5 { "assets/backgrounds/lvl3/sky_clouds.png", 12.0f, {-15.0f, 0.0f}, 200, 55.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl3_6 { "assets/backgrounds/lvl3/Sky_front_cloud.png", 12.0f, {-15.0f, 0.0f}, 200, 55.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl3_7 { "assets/backgrounds/lvl3/sky_front_mountain.png", 12.0f, {-15.0f, 0.0f}, 200, 55.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl3_8 { "assets/backgrounds/lvl3/sky_moon.png", 12.0f, {-15.0f, 0.0f}, 200, 55.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl3_9 { "assets/backgrounds/lvl3/Sky_sky.png", 12.0f, {-15.0f, 0.0f}, 200, 55.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl4_1 { "assets/backgrounds/lvl4/desert_cloud.png", 15.0f, {-30.0f, 0.0f}, 200, 80.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl4_2 { "assets/backgrounds/lvl4/desert_dunefrontt.png", 25.0f, {-30.0f, 0.0f}, 255, 150.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl4_3 { "assets/backgrounds/lvl4/desert_dunemid.png", 12.0f, {-20.0f, 0.0f}, 200, 60.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl4_4 { "assets/backgrounds/lvl4/desert_moon.png", 18.0f, {-40.0f, 0.0f}, 200, 90.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl4_5 { "assets/backgrounds/lvl4/desert_mountain.png", 20.0f, {-25.0f, 0.0f}, 255, 70.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr ParallaxDef | kParallaxLvl4_6 { "assets/backgrounds/lvl4/desert_sky.png", 10.0f, {-15.0f, 0.0f}, 200, 50.0f, 1280.0f, {2.0f, 2.0f}, 1280, 720 } |
| static constexpr SpriteAnimDef | k_rt1_1 |
| static constexpr SpriteAnimDef | k_rt1_2 |
| static constexpr SpriteAnimDef | k_rt1_3 |
| static constexpr SpriteAnimDef | k_rt1_4 |
| static constexpr SpriteAnimDef | k_rt1_5 |
| static constexpr SpriteAnimDef | k_rt1_6 |
| static constexpr SpriteAnimDef | k_rt1_7 |
| static constexpr SpriteAnimDef | k_rt1_8 |
| static constexpr SpriteAnimDef | k_rt1_12 |
| static constexpr SpriteAnimDef | k_rt1_13 |
| static constexpr SpriteAnimDef | k_rt2_2 |
| static constexpr SpriteAnimDef | k_rt2_3 |
| static constexpr SpriteAnimDef | k_rt2_4 |
| static constexpr SpriteAnimDef | k_rt2_5 |
| static constexpr SpriteAnimDef | k_rt2_6 |
| static constexpr SpriteAnimDef | k_rt2_7 |
| static constexpr SpriteAnimDef | k_rt3_1 |
| static constexpr SpriteAnimDef | k_rt3_2 |
| static constexpr SpriteAnimDef | k_rt3_3 |
| static constexpr SpriteAnimDef | k_rt39_1 |
| static constexpr SpriteAnimDef | k_rt39_2 |
| static constexpr SpriteAnimDef | k_rt35_boss2 |
| static constexpr SpriteAnimDef | k_rt35_boss2_bullet |
Definition at line 32 of file EntityBuilder.hpp.
|
inlinestatic |
Definition at line 650 of file EntityBuilder.hpp.
References k_rt2_2, and makeFromDef().
|
inlinestatic |
Definition at line 687 of file EntityBuilder.hpp.
References k_rt35_boss2_bullet, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 680 of file EntityBuilder.hpp.
References k_rt35_boss2, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 675 of file EntityBuilder.hpp.
References k_rt39_2, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 670 of file EntityBuilder.hpp.
References k_rt39_1, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 643 of file EntityBuilder.hpp.
References k_rt2_3, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 636 of file EntityBuilder.hpp.
References k_rt2_3, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 447 of file EntityBuilder.hpp.
References kParallaxLvl2_1, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 452 of file EntityBuilder.hpp.
References kParallaxLvl2_2, and makeParallax().
|
inlinestatic |
Definition at line 457 of file EntityBuilder.hpp.
References kParallaxLvl2_3, and makeParallax().
|
inlinestatic |
Definition at line 462 of file EntityBuilder.hpp.
References kParallaxLvl2_4, and makeParallax().
|
inlinestatic |
Definition at line 467 of file EntityBuilder.hpp.
References kParallaxLvl2_5, and makeParallax().
|
inlinestatic |
Definition at line 472 of file EntityBuilder.hpp.
References kParallaxLvl2_6, and makeParallax().
|
inlinestatic |
Definition at line 477 of file EntityBuilder.hpp.
References kParallaxLvl3_1, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 482 of file EntityBuilder.hpp.
References kParallaxLvl3_2, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 487 of file EntityBuilder.hpp.
References kParallaxLvl3_3, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 492 of file EntityBuilder.hpp.
References kParallaxLvl3_4, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 497 of file EntityBuilder.hpp.
References kParallaxLvl3_5, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 502 of file EntityBuilder.hpp.
References kParallaxLvl3_6, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 507 of file EntityBuilder.hpp.
References kParallaxLvl3_7, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 512 of file EntityBuilder.hpp.
References kParallaxLvl3_8, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 517 of file EntityBuilder.hpp.
References kParallaxLvl3_9, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 522 of file EntityBuilder.hpp.
References kParallaxLvl4_1, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 527 of file EntityBuilder.hpp.
References kParallaxLvl4_2, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 532 of file EntityBuilder.hpp.
References kParallaxLvl4_3, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 537 of file EntityBuilder.hpp.
References kParallaxLvl4_4, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 542 of file EntityBuilder.hpp.
References kParallaxLvl4_5, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 547 of file EntityBuilder.hpp.
References kParallaxLvl4_6, and makeParallax().
Referenced by rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 437 of file EntityBuilder.hpp.
References kParallaxLvl1_1, and makeParallax().
Referenced by rtp::client::scenes::MenuScene::onEnter(), and rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 442 of file EntityBuilder.hpp.
References kParallaxLvl1_2, and makeParallax().
Referenced by rtp::client::scenes::MenuScene::onEnter(), and rtp::client::scenes::PlayingScene::spawnParallax().
|
inlinestatic |
Definition at line 660 of file EntityBuilder.hpp.
References k_rt3_2, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 655 of file EntityBuilder.hpp.
References k_rt3_1, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 665 of file EntityBuilder.hpp.
References k_rt3_3, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 562 of file EntityBuilder.hpp.
References k_rt1_3, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 595 of file EntityBuilder.hpp.
References k_rt1_12, and makeFromDef().
|
inlinestatic |
Definition at line 600 of file EntityBuilder.hpp.
References k_rt1_13, and makeFromDef().
|
inlinestatic |
Definition at line 625 of file EntityBuilder.hpp.
References k_rt2_6, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 630 of file EntityBuilder.hpp.
References k_rt2_7, and makeFromDef().
|
inlinestatic |
Definition at line 605 of file EntityBuilder.hpp.
References k_rt2_2, and makeFromDef().
Referenced by rtp::client::scenes::MenuScene::onEnter(), and rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 615 of file EntityBuilder.hpp.
References k_rt2_4, and makeFromDef().
Referenced by rtp::client::scenes::MenuScene::onEnter(), and rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 92 of file EntityBuilder.hpp.
References animation, rtp::client::EntityTemplate::SpriteAnimDef::blue, rtp::ecs::components::Sprite::blue, rtp::client::EntityTemplate::SpriteAnimDef::direction, rtp::ecs::components::Velocity::direction, rtp::client::EntityTemplate::SpriteAnimDef::frameHeight, rtp::ecs::components::Animation::frameHeight, rtp::client::EntityTemplate::SpriteAnimDef::frameLeft, rtp::ecs::components::Animation::frameLeft, rtp::client::EntityTemplate::SpriteAnimDef::frameTop, rtp::ecs::components::Animation::frameTop, rtp::client::EntityTemplate::SpriteAnimDef::frameWidth, rtp::ecs::components::Animation::frameWidth, rtp::client::EntityTemplate::SpriteAnimDef::green, rtp::ecs::components::Sprite::green, id, rtp::client::EntityTemplate::SpriteAnimDef::id, position, rtp::client::EntityTemplate::SpriteAnimDef::rectHeight, rtp::ecs::components::Sprite::rectHeight, rtp::client::EntityTemplate::SpriteAnimDef::rectLeft, rtp::ecs::components::Sprite::rectLeft, rtp::client::EntityTemplate::SpriteAnimDef::rectTop, rtp::ecs::components::Sprite::rectTop, rtp::client::EntityTemplate::SpriteAnimDef::rectWidth, rtp::ecs::components::Sprite::rectWidth, rtp::client::EntityTemplate::SpriteAnimDef::red, rtp::ecs::components::Sprite::red, rotation, scale, rtp::client::EntityTemplate::SpriteAnimDef::scale, rtp::client::EntityTemplate::SpriteAnimDef::speed, rtp::ecs::components::Velocity::speed, sprite, rtp::client::EntityTemplate::SpriteAnimDef::texturePath, rtp::ecs::components::Sprite::texturePath, rtp::client::EntityTemplate::SpriteAnimDef::totalFrames, rtp::ecs::components::Animation::totalFrames, velocity, withAnimation, rtp::client::EntityTemplate::SpriteAnimDef::withAnimation, withVelocity, rtp::client::EntityTemplate::SpriteAnimDef::zIndex, and rtp::ecs::components::Sprite::zIndex.
Referenced by createBasicScout2(), createBoss2Bullet(), createBoss2Kraken(), createBossShield(), createBossShip(), createBulletEnemy(), createBulletPlayer(), createPowerUpDoubleFire(), createPowerUpHeal(), createPowerUpShield(), effect_1(), effect_2(), effect_3(), effect_4(), effect_5(), enemy_1(), enemy_2(), player_ship(), shot_1(), shot_2(), shot_3(), shot_4(), shot_5(), shot_6(), shot_7(), and shot_insane().
|
inlinestatic |
Definition at line 127 of file EntityBuilder.hpp.
References rtp::ecs::components::Velocity::direction, id, rtp::client::EntityTemplate::ParallaxDef::opacity, rtp::ecs::components::Sprite::opacity, parallax, rtp::client::EntityTemplate::ParallaxDef::parallaxSpeed, position, rtp::client::EntityTemplate::ParallaxDef::rectHeight, rtp::ecs::components::Sprite::rectHeight, rtp::ecs::components::Sprite::rectLeft, rtp::ecs::components::Sprite::rectTop, rtp::client::EntityTemplate::ParallaxDef::rectWidth, rtp::ecs::components::Sprite::rectWidth, rtp::ecs::components::Sprite::red, rotation, scale, rtp::client::EntityTemplate::ParallaxDef::scale, rtp::ecs::components::ParallaxLayer::speed, rtp::ecs::components::Velocity::speed, sprite, rtp::client::EntityTemplate::ParallaxDef::texturePath, rtp::ecs::components::Sprite::texturePath, rtp::client::EntityTemplate::ParallaxDef::textureWidth, rtp::ecs::components::ParallaxLayer::textureWidth, velocity, rtp::client::EntityTemplate::ParallaxDef::velocityDir, rtp::client::EntityTemplate::ParallaxDef::velocitySpeed, withParallax, withVelocity, and rtp::ecs::components::Sprite::zIndex.
Referenced by createParallaxLvl2_1(), createParallaxLvl2_2(), createParallaxLvl2_3(), createParallaxLvl2_4(), createParallaxLvl2_5(), createParallaxLvl2_6(), createParallaxLvl3_1(), createParallaxLvl3_2(), createParallaxLvl3_3(), createParallaxLvl3_4(), createParallaxLvl3_5(), createParallaxLvl3_6(), createParallaxLvl3_7(), createParallaxLvl3_8(), createParallaxLvl3_9(), createParallaxLvl4_1(), createParallaxLvl4_2(), createParallaxLvl4_3(), createParallaxLvl4_4(), createParallaxLvl4_5(), createParallaxLvl4_6(), createParrallaxLvl1_1(), and createParrallaxLvl1_2().
|
inlinestatic |
Definition at line 552 of file EntityBuilder.hpp.
References k_rt1_1, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 567 of file EntityBuilder.hpp.
References k_rt1_4, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
|
inlinestatic |
Definition at line 572 of file EntityBuilder.hpp.
References k_rt1_5, and makeFromDef().
|
inlinestatic |
Definition at line 577 of file EntityBuilder.hpp.
References k_rt1_6, and makeFromDef().
|
inlinestatic |
Definition at line 582 of file EntityBuilder.hpp.
References k_rt1_7, and makeFromDef().
|
inlinestatic |
Definition at line 587 of file EntityBuilder.hpp.
References k_rt1_8, and makeFromDef().
Referenced by rtp::client::NetworkSyncSystem::onBeamState().
|
inlinestatic |
Definition at line 610 of file EntityBuilder.hpp.
References k_rt2_3, and makeFromDef().
|
inlinestatic |
Definition at line 620 of file EntityBuilder.hpp.
References k_rt2_5, and makeFromDef().
|
inlinestatic |
Definition at line 557 of file EntityBuilder.hpp.
References k_rt1_2, and makeFromDef().
| ecs::components::Animation rtp::client::EntityTemplate::animation {} |
Initial animation data.
Definition at line 48 of file EntityBuilder.hpp.
Referenced by makeFromDef(), and rtp::client::EntityBuilder::update().
| std::string rtp::client::EntityTemplate::id |
Enemy type identifier.
Definition at line 33 of file EntityBuilder.hpp.
Referenced by makeFromDef(), and makeParallax().
|
staticconstexpr |
Definition at line 179 of file EntityBuilder.hpp.
Referenced by player_ship().
|
staticconstexpr |
Definition at line 267 of file EntityBuilder.hpp.
Referenced by effect_2().
|
staticconstexpr |
Definition at line 278 of file EntityBuilder.hpp.
Referenced by effect_3().
|
staticconstexpr |
Definition at line 190 of file EntityBuilder.hpp.
Referenced by shot_insane().
|
staticconstexpr |
Definition at line 201 of file EntityBuilder.hpp.
Referenced by effect_1().
|
staticconstexpr |
Definition at line 212 of file EntityBuilder.hpp.
Referenced by shot_1().
|
staticconstexpr |
Definition at line 223 of file EntityBuilder.hpp.
Referenced by shot_2().
|
staticconstexpr |
Definition at line 234 of file EntityBuilder.hpp.
Referenced by shot_3().
|
staticconstexpr |
Definition at line 245 of file EntityBuilder.hpp.
Referenced by shot_4().
|
staticconstexpr |
Definition at line 256 of file EntityBuilder.hpp.
Referenced by shot_5().
|
staticconstexpr |
Definition at line 290 of file EntityBuilder.hpp.
Referenced by createBasicScout2(), and enemy_1().
|
staticconstexpr |
Definition at line 301 of file EntityBuilder.hpp.
Referenced by createBulletEnemy(), createBulletPlayer(), and shot_6().
|
staticconstexpr |
Definition at line 312 of file EntityBuilder.hpp.
Referenced by enemy_2().
|
staticconstexpr |
Definition at line 323 of file EntityBuilder.hpp.
Referenced by shot_7().
|
staticconstexpr |
Definition at line 334 of file EntityBuilder.hpp.
Referenced by effect_4().
|
staticconstexpr |
Definition at line 345 of file EntityBuilder.hpp.
Referenced by effect_5().
|
staticconstexpr |
Definition at line 413 of file EntityBuilder.hpp.
Referenced by createBoss2Kraken().
|
staticconstexpr |
Definition at line 425 of file EntityBuilder.hpp.
Referenced by createBoss2Bullet().
|
staticconstexpr |
Definition at line 389 of file EntityBuilder.hpp.
Referenced by createBossShip().
|
staticconstexpr |
Definition at line 400 of file EntityBuilder.hpp.
Referenced by createBossShield().
|
staticconstexpr |
Definition at line 356 of file EntityBuilder.hpp.
Referenced by createPowerUpHeal().
|
staticconstexpr |
Definition at line 367 of file EntityBuilder.hpp.
Referenced by createPowerUpDoubleFire().
|
staticconstexpr |
Definition at line 378 of file EntityBuilder.hpp.
Referenced by createPowerUpShield().
|
staticconstexpr |
Definition at line 155 of file EntityBuilder.hpp.
Referenced by createParrallaxLvl1_1().
|
staticconstexpr |
Definition at line 156 of file EntityBuilder.hpp.
Referenced by createParrallaxLvl1_2().
|
staticconstexpr |
Definition at line 157 of file EntityBuilder.hpp.
Referenced by createParallaxLvl2_1().
|
staticconstexpr |
Definition at line 158 of file EntityBuilder.hpp.
Referenced by createParallaxLvl2_2().
|
staticconstexpr |
Definition at line 159 of file EntityBuilder.hpp.
Referenced by createParallaxLvl2_3().
|
staticconstexpr |
Definition at line 160 of file EntityBuilder.hpp.
Referenced by createParallaxLvl2_4().
|
staticconstexpr |
Definition at line 161 of file EntityBuilder.hpp.
Referenced by createParallaxLvl2_5().
|
staticconstexpr |
Definition at line 162 of file EntityBuilder.hpp.
Referenced by createParallaxLvl2_6().
|
staticconstexpr |
Definition at line 163 of file EntityBuilder.hpp.
Referenced by createParallaxLvl3_1().
|
staticconstexpr |
Definition at line 164 of file EntityBuilder.hpp.
Referenced by createParallaxLvl3_2().
|
staticconstexpr |
Definition at line 165 of file EntityBuilder.hpp.
Referenced by createParallaxLvl3_3().
|
staticconstexpr |
Definition at line 166 of file EntityBuilder.hpp.
Referenced by createParallaxLvl3_4().
|
staticconstexpr |
Definition at line 167 of file EntityBuilder.hpp.
Referenced by createParallaxLvl3_5().
|
staticconstexpr |
Definition at line 168 of file EntityBuilder.hpp.
Referenced by createParallaxLvl3_6().
|
staticconstexpr |
Definition at line 169 of file EntityBuilder.hpp.
Referenced by createParallaxLvl3_7().
|
staticconstexpr |
Definition at line 170 of file EntityBuilder.hpp.
Referenced by createParallaxLvl3_8().
|
staticconstexpr |
Definition at line 171 of file EntityBuilder.hpp.
Referenced by createParallaxLvl3_9().
|
staticconstexpr |
Definition at line 172 of file EntityBuilder.hpp.
Referenced by createParallaxLvl4_1().
|
staticconstexpr |
Definition at line 173 of file EntityBuilder.hpp.
Referenced by createParallaxLvl4_2().
|
staticconstexpr |
Definition at line 174 of file EntityBuilder.hpp.
Referenced by createParallaxLvl4_3().
|
staticconstexpr |
Definition at line 175 of file EntityBuilder.hpp.
Referenced by createParallaxLvl4_4().
|
staticconstexpr |
Definition at line 176 of file EntityBuilder.hpp.
Referenced by createParallaxLvl4_5().
|
staticconstexpr |
Definition at line 177 of file EntityBuilder.hpp.
Referenced by createParallaxLvl4_6().
| ecs::components::ParallaxLayer rtp::client::EntityTemplate::parallax {} |
Parallax layer data.
Definition at line 53 of file EntityBuilder.hpp.
Referenced by makeParallax(), and rtp::client::scenes::MenuScene::onEnter().
| Vec2f rtp::client::EntityTemplate::position {0.0f, 0.0f} |
Spawn position.
Definition at line 36 of file EntityBuilder.hpp.
Referenced by makeFromDef(), makeParallax(), rtp::client::NetworkSyncSystem::onBeamState(), rtp::client::scenes::MenuScene::onEnter(), and rtp::client::EntityBuilder::update().
| float rtp::client::EntityTemplate::rotation {0.0f} |
Spawn rotation.
Definition at line 37 of file EntityBuilder.hpp.
Referenced by makeFromDef(), makeParallax(), rtp::client::NetworkSyncSystem::onBeamState(), and rtp::client::EntityBuilder::update().
| Vec2f rtp::client::EntityTemplate::scale {1.0f, 1.0f} |
Spawn scale.
Definition at line 38 of file EntityBuilder.hpp.
Referenced by makeFromDef(), makeParallax(), rtp::client::NetworkSyncSystem::onBeamState(), rtp::client::scenes::MenuScene::onEnter(), rtp::client::NetworkSyncSystem::onSpawnEntityFromServer(), and rtp::client::EntityBuilder::update().
| ecs::components::Sprite rtp::client::EntityTemplate::sprite {} |
Sprite data.
Definition at line 43 of file EntityBuilder.hpp.
Referenced by makeFromDef(), makeParallax(), and rtp::client::EntityBuilder::update().
| std::string rtp::client::EntityTemplate::tag {} |
Template tag for entity differentiation.
Definition at line 34 of file EntityBuilder.hpp.
Referenced by rtp::client::NetworkSyncSystem::onBeamState(), and rtp::client::NetworkSyncSystem::onSpawnEntityFromServer().
| ecs::components::Velocity rtp::client::EntityTemplate::velocity {} |
Initial velocity.
Definition at line 41 of file EntityBuilder.hpp.
Referenced by makeFromDef(), makeParallax(), and rtp::client::EntityBuilder::update().
| bool rtp::client::EntityTemplate::withAnimation |
Whether to add Animation component.
Definition at line 45 of file EntityBuilder.hpp.
Referenced by makeFromDef(), and rtp::client::EntityBuilder::update().
| bool rtp::client::EntityTemplate::withParallax |
Whether to add ParallaxLayer component.
Definition at line 50 of file EntityBuilder.hpp.
Referenced by makeParallax().
| bool rtp::client::EntityTemplate::withVelocity {false} |
Whether to add Velocity component.
Definition at line 40 of file EntityBuilder.hpp.
Referenced by makeFromDef(), makeParallax(), and rtp::client::EntityBuilder::update().