-
Notifications
You must be signed in to change notification settings - Fork 0
/
area.cpp
executable file
·75 lines (54 loc) · 1.41 KB
/
area.cpp
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
63
64
65
66
67
68
69
70
71
72
73
#include "area.h"
Area::Area()
{
AreaSkryptContainer = NULL;
next = prev = next_sort = prev_sort = NULL;
first_reset = last_reset = NULL;
name = filename = NULL;
flags = 0;
status = age = nplayer = reset_frequency = 0;
low_r_vnum = hi_r_vnum = low_o_vnum = hi_o_vnum = low_m_vnum = hi_m_vnum = 0;
low_soft_range = hi_soft_range = low_hard_range = hi_hard_range = 0;
author = resetmsg = NULL;
last_mob_reset = last_obj_reset = NULL;
max_players = 0;
mkills = mdeaths = pkills = pdeaths = 0;
gold_looted = illegal_pk = high_economy = low_economy = 0;
// Ksilyan:
int i;
for ( i = 0; i < MAX_RANDOM_DESCRIPTION_TYPE + 1; i++)
{
random_description_counts[i] = 0;
int j;
for ( j = 0; j < MAX_RANDOM_DESCRIPTIONS; j++ )
{
random_descriptions[i][j] = NULL;
random_night_descriptions[i][j] = NULL;
}
}
secInstallDate = 0;
version = 0;
}
Area::~Area()
{
// do nothing
}
void Area::skryptSendEvent(const string & eventName, list<Argument*> & arguments)
{
if ( !this->skryptContainer_ )
return;
ArgumentArea argMe(this);
skryptContainer_->SendEvent(eventName, argMe, arguments, this);
}
const string Area::codeGetClassName()
{
return "Area";
}
const string Area::codeGetBasicInfo()
{
return "Area " + string(this->name) + " (" + string(this->filename) + ")";
}
const string Area::codeGetFullInfo()
{
return "Area " + string(this->name) + " (" + string(this->filename) + ")";
}