File: verb.h

package info (click to toggle)
aime 0.60.3-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,016 kB
  • ctags: 5,217
  • sloc: cpp: 77,611; ansic: 3,765; sh: 2,996; makefile: 234; sed: 93
file content (50 lines) | stat: -rw-r--r-- 891 bytes parent folder | download | duplicates (3)
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
#ifndef _VERB_H
#define _VERB_H

#include "mudtypes.h"
#include "entity.h"


struct verb_data {
   char     *verbname;
   int      verbformat;
   int      permissions;
   Cmd_Func verbcommands;
};

class Player;  

class Verb : public Entity {
 public:

   Verb();
   virtual ~Verb();
   Verb(char *verb_name);

   char *get_verb_str();
   int get_verb_format();
   int get_verb_comflag();
   void set_verb_format(int the_format);
   void set_verb_comflag(int the_comflag);
   void set_verb_command(Cmd_Func in_command);
   Cmd_Func get_command();
   int add_new_execute(long timespan);
   int display_data(Player *the_player);
   virtual int get_mem_size();
   virtual int get_mem_size_dynamic();


 private:
 
   Strings the_verb;
   int format;
   int comflag;
   Cmd_Func the_command;  

   long num_executes;
   long max_execute;
   long min_execute;
   long avg_execute;   
};

#endif