Atrinik Server  4.0
exp.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Atrinik, a Multiplayer Online Role Playing Game *
3  * *
4  * Copyright (C) 2009-2014 Alex Tokar and Atrinik Development Team *
5  * *
6  * Fork from Crossfire (Multiplayer game for X-windows). *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the Free Software *
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
21  * *
22  * The author can be reached at admin@atrinik.org *
23  ************************************************************************/
24 
32 #ifndef EXP_H
33 #define EXP_H
34 
35 #include <global.h>
36 
38 typedef struct level_color {
40  int green;
41 
43  int blue;
44 
46  int yellow;
47 
49  int orange;
50 
52  int red;
53 
55  int purple;
57 
58 /* Prototypes */
59 uint64_t new_levels[MAXLEVEL + 2];
61 
62 uint64_t
63 level_exp(int level, double expmul);
64 int64_t
65 add_exp(object *op, int64_t exp_gain, int skill_nr, int exact);
66 int
67 exp_lvl_adj(object *who, object *op);
68 float
69 calc_level_difference(int who_lvl, int op_lvl);
70 
71 #endif
int exp_lvl_adj(object *who, object *op)
Definition: exp.c:422
uint64_t level_exp(int level, double expmul)
Definition: exp.c:284
int purple
Definition: exp.h:55
int blue
Definition: exp.h:43
struct level_color level_color_t
int yellow
Definition: exp.h:46
uint64_t new_levels[MAXLEVEL+2]
Definition: exp.c:38
float calc_level_difference(int who_lvl, int op_lvl)
Definition: exp.c:490
int64_t add_exp(object *op, int64_t exp_gain, int skill_nr, int exact)
Definition: exp.c:304
int orange
Definition: exp.h:49
int red
Definition: exp.h:52
#define MAXLEVEL
Definition: global.h:221
int green
Definition: exp.h:40