27 lines
423 B
C
27 lines
423 B
C
|
#ifndef _FD_EFFECT_
|
||
|
#define _FD_EFFECT_
|
||
|
|
||
|
typedef struct Effect Effect;
|
||
|
|
||
|
typedef enum EffectType {
|
||
|
EFFECT_NOOP,
|
||
|
EFFECT_GOTO,
|
||
|
EFFECT_INCREMENT,
|
||
|
EFFECT_DECREMENT,
|
||
|
EFFECT_ENABLE,
|
||
|
EFFECT_DISABLE,
|
||
|
} EffectType;
|
||
|
|
||
|
#include "game.h"
|
||
|
|
||
|
struct Effect {
|
||
|
EffectType type;
|
||
|
char *argument;
|
||
|
};
|
||
|
|
||
|
void cause_effect(Game *g, Effect *e);
|
||
|
Effect *create_effect(Game *g, const char *string);
|
||
|
void print_effect(Effect *e);
|
||
|
|
||
|
#endif
|