thrive/effect.h

33 lines
552 B
C
Raw Normal View History

2025-01-18 19:34:45 -05:00
#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,
2025-01-19 09:41:25 -05:00
EFFECT_QUIT_GAME,
2025-01-19 09:52:18 -05:00
EFFECT_LOOK_ROOM,
2025-01-21 21:01:32 -05:00
EFFECT_TAKE_ITEM,
EFFECT_DROP_ITEM,
EFFECT_DESTROY_ITEM,
2025-01-21 21:08:05 -05:00
EFFECT_CHECK_INVENTORY,
2025-01-18 19:34:45 -05:00
} 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