[ogs-changes] dist/c++/ogs/magic Types.h,NONE,1.1
Status: Alpha
Brought to you by:
elemings
|
From: <ele...@us...> - 2003-04-18 03:40:13
|
Update of /cvsroot/ogs/dist/c++/ogs/magic In directory sc8-pr-cvs1:/tmp/cvs-serv5613 Added Files: Types.h Log Message: Forgot to add Types.h file. --- NEW FILE: Types.h --- /* * Types.h -- interface for magic type definitions * Copyright (C) 2003 Eric Lemings <ele...@us...> * * This software is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this software; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA * * RCS: $Id: Types.h,v 1.1 2003/04/18 03:40:09 elemings Exp $ */ #ifdef __cplusplus # ifndef OGS_MAGIC_TYPES_H # define OGS_MAGIC_TYPES_H # include <vector> # include <ogs/magic/Namespace.h> OGS_BEGIN_MAGIC_NAMESPACE /** An unsigned integer type that represents spell level. */ typedef unsigned short SpellLevel; /** Highest spell level. */ static const SpellLevel MAX_SPELL_LEVEL = 9; /** * An array of spell counts. Each element in the array represents * the number of spells for that spell level. The spell level is * the same as the index of the array. */ typedef std::vector<unsigned> SpellCounts; OGS_END_MAGIC_NAMESPACE # endif /* !defined OGS_MAGIC_TYPES_H */ #endif /* defined __cplusplus */ |