Page MenuHomePhabricator (Chris)

IntegerComponents.h
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

IntegerComponents.h

//
// Created by Ido Mozes on 14/07/2019.
//
#ifndef SDL_GAME_INTEGERCOMPONENTS_H
#define SDL_GAME_INTEGERCOMPONENTS_H
#define INTEGER_COMPONENT(className, classType) class className : public IntegerComponent { public: static constexpr ComponentType type = ComponentType::classType; using IntegerComponent::IntegerComponent; }
#include "../Component.h"
class IntegerComponent : public Component {
public:
int value;
explicit IntegerComponent(int value) : value(value) {}
};
enum Types {
OBSTACLE_T, TOWER_T, BLOON_T, SHOT_T, SEQUENCE_T
};
enum Strategies {
FIRST, LAST, CLOSEST, STRONGEST
};
enum BloonKinds {
RED_BLOON,
BLUE_BLOON,
GREEN_BLOON,
YELLOW_BLOON,
PINK_BLOON,
PURPLE_BLOON,
WHITE_BLOON,
BLACK_BLOON,
LEAD_BLOON,
ZEBRA_BLOON,
RAINBOW_BLOON,
CERAMIC_BLOON,
MOAB,
BFB,
ZOMG,
DDT,
BAD
};
enum TowerKinds {
DART_MONKEY,
TACK_SHOOTER,
SUPER_MONKEY,
SNIPER_MONKEY,
BOMB_TOWER,
GLUE_GUNNER,
};
enum ShotKinds {
SPIKE,
JUGGERNAUT,
DART,
TACK,
ENHANCED_TACK,
HOT_TACK,
BLADE,
BULLET,
ENHANCED_BULLET,
BOMB,
BOMB_EXPLOSION,
MISSILE,
MISSILE_EXPLOSION,
ENHANCED_BOMB,
ENHANCED_BOMB_EXPLOSION,
MOAB_MAULER,
MOAB_MAULER_EXPLOSION,
MOAB_ASSASSIN,
MOAB_ASSASSIN_EXPLOSION,
MOAB_ELIMINATOR,
MOAB_ELIMINATOR_EXPLOSION,
GOO_SHOT,
GOO_SPLASH,
GLUE,
GUM,
STUN,
CORROSIVE,
LASER,
PLASMA,
SUN
};
INTEGER_COMPONENT(Lives, LIVES);
INTEGER_COMPONENT(Damage, DAMAGE);
INTEGER_COMPONENT(Pierce, PIERCE);
INTEGER_COMPONENT(Type, TYPE);
INTEGER_COMPONENT(Strategy, STRATEGY);
INTEGER_COMPONENT(Cost, COST);
INTEGER_COMPONENT(Kind, KIND);
INTEGER_COMPONENT(ShotKind, SHOT_KIND);
INTEGER_COMPONENT(ShotsAmount, SHOTS_AMOUNT);
#endif //SDL_GAME_INTEGERCOMPONENTS_H

File Metadata

Mime Type
text/x-c++
Expires
Sun, Nov 15, 3:09 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
135961
Default Alt Text
IntegerComponents.h (1 KB)

Event Timeline