File: utils.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 (61 lines) | stat: -rw-r--r-- 2,199 bytes parent folder | download | duplicates (2)
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
#ifndef _UTILS_H
#define _UTILS_H

#include <time.h>

#include "strings.h"

#ifndef CONVERTER
#include "errlog.h"
#include "mudobject.h"

class Inp_Handler;

char *get_time_str(void);
void get_date_str(Strings *time_str, time_t the_time);
int num_ats(char *the_str);
int make_full_area(Strings *the_string, char *the_area);
int encrypt_passwd(Strings *plain_text, Strings *encrypted_text);
int greater_than(char *first_str, char *second_str);
int data_log_on_pop(Inp_Handler *the_handler, char *player_name, 
            char *player_loc, char *data_log_name, Strings *the_string);
int test_malloc();
int check_specials(char *trig_name, MudObject *the_obj, 
                     MudObject *the_primary, MudObject *the_secondary, 
                                 MudObject *this_obj, Individual *the_user);
int check_specials(char *trig_name, MudObject *the_obj, 
                 MudObject *the_primary, MudObject *the_secondary, 
                 MudObject *this_obj, Individual *the_user, char *target_text);
int run_command(MudObject *the_user, char *command_str);
int enter_new_player(Inp_Handler *the_handler, char *player_name, 
                    char *not_used1, char *not_used2, Strings *not_used3);
int test_failure(char *player_name, int test_num);
MudObject *get_indicated_param(char *param_name, Specials *the_special,
                               char *function_name, Individual *the_user,
                               in_params *player_params);
int get_stat_bonus(int the_stat);
char *get_rand_word(Strings *the_list);
vars *find_var(special_env *environment, char *var_name);
vars *get_var(special_env *environment, char *var_name);
int delete_var_list(special_env *environment);
int is_ignore_word(char *the_str);
int find_pos_in_list(char *the_list[], char *find_str);
char *str_sep( char **acStr, char *acDelim );
int sysmessage(char *new_str, ...);
int prompt_user_convert(char *filename, char *directory);
int test_funct();
int file_exists(char *the_file);
void fault(char *the_str);

#endif
// All functions used by the converter go after the endif above

class ErrLog;
class Entity;

char *read_desc_type(FILE *read_file, ErrLog *error_log, Entity *the_obj);


#endif