1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#ifndef _ACTION_H
#define _ACTION_H
#include "entity.h"
class Player;
class Builder;
class Flags;
class Action : public Entity {
public:
Action();
virtual ~Action();
Action(char *action_name);
int set_actor(char *the_string);
char *get_actor();
int set_crowd(char *the_string);
char *get_crowd();
int set_target(char *the_string);
char *get_target();
int set_sender(char *the_string);
char *get_sender();
int set_bystander(char *the_string);
char *get_bystander();
int load_action(FILE *the_file, ErrLog *error_log, int is_builder);
virtual void describe(Builder *the_builder);
virtual void describe(Player *the_player);
virtual int set_attrib(Builder *the_builder, Parse *the_parsed);
virtual int copy_object(Entity *copy_obj);
void write_object(FILE *the_file, int is_builder);
int is_modified();
void set_modified(int the_num);
int execute_action(Parse *the_parsed, Player *the_player);
Flags *get_actflags();
virtual int get_mem_size();
virtual int get_mem_size_dynamic();
private:
int modified;
Strings actor;
Strings crowd;
Strings target;
Strings sender;
Strings bystander;
Flags *act_flags;
};
#endif
|