Planeshift

pstrait.h

Go to the documentation of this file.
00001 /*
00002  * pstrait.h
00003  *
00004  * Copyright (C) 2001 Atomic Blue ([email protected], http://www.atomicblue.org)
00005  *
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation (version 2 of the License)
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017  *
00018  */
00019 
00020 #ifndef __PSTRAIT_H__
00021 #define __PSTRAIT_H__
00022 
00023 //=============================================================================
00024 // Crystal Space Includes
00025 //=============================================================================
00026 #include <csutil/csstring.h>
00027 
00028 //=============================================================================
00029 // Project Includes
00030 //=============================================================================
00031 #include "net/charmessages.h"
00032 
00033 //=============================================================================
00034 // Local Includes
00035 //=============================================================================
00036 
00037 struct psTrait
00038 {
00039     psTrait();
00040     ~psTrait();
00041     static const char* locationString[];
00042     const char* GetLocationString() const;
00043     csString ToXML(bool compact = false) const;
00044     unsigned int uid;
00045     unsigned int next_trait_uid;
00046     psTrait* next_trait;
00047     unsigned int raceID; // The DB uid for the race_info table
00048     unsigned int race;   // The internal race ID
00049     PSCHARACTER_GENDER gender;
00050     PSTRAIT_LOCATION location;
00051     csString name;
00052     unsigned int cstr_id_mesh;
00053     unsigned int cstr_id_material;
00054     unsigned int cstr_id_texture;
00055     bool onlyNPC;
00056     csString shaderVar;      
00057 };
00058 
00059 
00060 #endif
00061