Show kmissiontype.cpp syntax highlighted
/*
Copyright (C) 2003, 2004, 2005 by Luca Cappa
Written by Luca Cappa groton@users.sourceforge.net
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "cssysdef.h"
#include "csutil/scfstr.h"
//Include for this file.
#include "kmissiontype.h"
const KMissionType KMissionType::FREEWALKING = KMissionType ("FREEWALKING");
const KMissionType KMissionType::TARGETING = KMissionType ("TARGETING");
const KMissionType KMissionType::NOTFREEWALKING = KMissionType ("NOTFREEWALKING");
const KMissionType KMissionType::POINTINGTARGET = KMissionType ("POINTINGTARGET");
class KMissionType const KConstant<class KMissionType>::INVALID;
#ifdef KAS_OLD_WAY
KMissionType const* KConstant<KMissionType>::s_idArray;
size_t KConstant<KMissionType>::s_idArraySize;
#else // KAS_OLD_WAY
const KMissionType KConstant<KMissionType>::s_idArray [4] =
{
KMissionType::FREEWALKING,
KMissionType::TARGETING,
KMissionType::NOTFREEWALKING,
KMissionType::POINTINGTARGET
};
#endif // KAS_OLD_WAY
See more files for this project here