Planeshift
pstrait.h
Go to the documentation of this file.
1 /*
2  * pstrait.h
3  *
4  * Copyright (C) 2001 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef __PSTRAIT_H__
21 #define __PSTRAIT_H__
22 
23 //=============================================================================
24 // Crystal Space Includes
25 //=============================================================================
26 #include <csutil/csstring.h>
27 
28 //=============================================================================
29 // Project Includes
30 //=============================================================================
31 #include "net/charmessages.h"
32 
33 //=============================================================================
34 // Local Includes
35 //=============================================================================
36 
41 struct psTrait
42 {
43  psTrait();
44  ~psTrait();
45  static const char* locationString[];
46  const char* GetLocationString() const;
47  csString ToXML(bool compact = false) const;
48  unsigned int uid;
49  unsigned int next_trait_uid;
51  unsigned int raceID; // The DB uid for the race_info table
52  unsigned int race; // The internal race ID
55  csString name;
56  unsigned int cstr_id_mesh;
57  unsigned int cstr_id_material;
58  unsigned int cstr_id_texture;
59  bool onlyNPC;
60  csString shaderVar;
61 };
62 
63 
64 #endif
65 
csString ToXML(bool compact=false) const
unsigned int cstr_id_texture
Definition: pstrait.h:58
csString shaderVar
The variable for the shader for this trait.
Definition: pstrait.h:60
unsigned int next_trait_uid
Definition: pstrait.h:49
unsigned int race
Definition: pstrait.h:52
unsigned int cstr_id_material
Definition: pstrait.h:57
unsigned int cstr_id_mesh
Definition: pstrait.h:56
bool onlyNPC
Definition: pstrait.h:59
static const char * locationString[]
Definition: pstrait.h:45
PSTRAIT_LOCATION
Define the player controled base customization that their model can have.
Definition: charmessages.h:24
psTrait * next_trait
Definition: pstrait.h:50
Represent a visual feature of character customization like hair style, color of eyes, skin color, ...
Definition: pstrait.h:41
unsigned int uid
Definition: pstrait.h:48
PSCHARACTER_GENDER
Definition: charmessages.h:14
PSTRAIT_LOCATION location
Definition: pstrait.h:54
PSCHARACTER_GENDER gender
Definition: pstrait.h:53
unsigned int raceID
Definition: pstrait.h:51
csString name
Definition: pstrait.h:55
const char * GetLocationString() const