ns/releases/3.03/source/mod/AvHBalanceAnalysis.h
tankefugl 54a4ac5469 o Branched from 3.02
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@85 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-04-26 15:38:32 +00:00

54 lines
No EOL
1.5 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_ANALYSIS_H
#define AVH_BALANCE_ANALYSIS_H
#include "util/STLUtil.h"
#include "mod/AvHTechNodes.h"
void AvHBAComputeAnalysis(StringList& outList);
typedef vector<AvHMessageID> MessageIDListType;
class AvHEconomy
{
public:
AvHEconomy(const AvHTechNodes& inTechNodes, int inInitialResources, int inInitialTowers, bool inMarine, MessageIDListType inTargetTechList);
// Finds the fastest way to get to goal
void CalculateFastestTime();
void Simulate(int inBuildXNodes);
int GetBuildNodeCost() const;
int GetResultTime() const;
int GetResultTowers() const;
int GetResultResources() const;
private:
AvHTechNodes mTechNodes;
int mInitialResources;
int mInitialTowers;
bool mMarine;
MessageIDListType mTargetTech;
int mResultTime;
int mResultTowers;
int mResultResources;
};
#endif