12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #pragma once
- #include <Text.h>
- using namespace Framework;
- enum VariableTyp
- {
- NICHTS,
- INTEGER,
- BOOLEAN,
- STRING,
- RICHTUNG,
- FLOAT,
- TASTE,
- SPIELER,
- TIMER,
- TEAM,
- BARIERE,
- SCHALTER,
- BASE,
- DROP,
- GEGENSTAND,
- GEGENSTAND_TYP,
- GESCHOSS,
- SCHIENE,
- TUNNEL,
- UMLENKUNG,
- TRIGGER
- };
- class Variable
- {
- private:
- VariableTyp typ;
- int ref;
- public:
- Variable( VariableTyp typ );
- virtual ~Variable();
- VariableTyp getVariableTyp() const;
- Variable *getThis();
- Variable *release();
- };
- class Integer : public Variable
- {
- private:
- int value;
- public:
- Integer( int value, bool taste = 0 );
- void setValue( int value );
- int getValue() const;
- };
- class Boolean : public Variable
- {
- private:
- bool value;
- public:
- Boolean( bool value );
- void setValue( bool value );
- bool getValue() const;
- };
- class String : public Variable
- {
- private:
- Text value;
- public:
- String( const char *value, bool richtung = 0 );
- void setValue( Text value );
- const Text &getValue() const;
- };
- class Float : public Variable
- {
- private:
- float value;
- public:
- Float( float value );
- void setValue( float value );
- float getValue() const;
- };
|