NS/releases/3.05/source/mod/AvHBalance.h
tankefugl b5590dd5d9 made a copy
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@144 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-05-29 11:34:28 +00:00

46 lines
No EOL
1.4 KiB
C++

//======== (C) Copyright 2002 Charles G. Cleveland All rights reserved. =========
//
// The copyright to the contents herein is the property of Charles G. Cleveland.
// The contents may be used and/or copied only with the written permission of
// Charles G. Cleveland, or in accordance with the terms and conditions stipulated in
// the agreement/contract under which the contents have been supplied.
//
// Purpose:
//
// $Workfile: $
// $Date: $
//
//-------------------------------------------------------------------------------
// $Log: $
//===============================================================================
#ifndef AVH_BALANCE_H
#define AVH_BALANCE_H
// Header to wrap #defines in AvHBalance.txt
#include "build.h"
#include <string>
// If we're not playtesting, use #defines for variable names
#ifndef AVH_PLAYTEST_BUILD
#include "../Balance.txt"
#define BALANCE_IVAR(inName) inName
#define BALANCE_FVAR(inName) inName
#endif
// If we're playtesting, lookup dynamic value of variable
#ifdef AVH_PLAYTEST_BUILD
int GetBalanceInt(const string& inName);
float GetBalanceFloat(const string& inName);
#define BALANCE_IVAR(inName) GetBalanceInt(#inName)
#define BALANCE_FVAR(inName) GetBalanceFloat(#inName)
#endif
#ifdef AVH_PLAYTEST_BUILD
typedef map<string, int> BalanceIntListType;
typedef map<string, float> BalanceFloatListType;
#endif
#endif