fallout2-ce/src/sfall_script_value.h

26 lines
512 B
C
Raw Normal View History

2023-04-19 16:23:33 -07:00
#ifndef SFALL_SCRIPT_VALUE
#define SFALL_SCRIPT_VALUE
#include "interpreter.h"
#include "object.h"
namespace fallout {
class SFallScriptValue : public ProgramValue {
public:
SFallScriptValue();
SFallScriptValue(int value);
SFallScriptValue(Object* value);
SFallScriptValue(ProgramValue& value);
2023-04-20 03:12:11 -07:00
2023-04-19 16:23:33 -07:00
bool isInt() const;
bool isFloat() const;
bool isPointer() const;
int asInt() const;
2023-04-23 09:56:09 -07:00
bool operator<(SFallScriptValue const& other) const;
2023-04-19 16:23:33 -07:00
};
}
#endif /* SFALL_SCRIPT_VALUE */