mirror of
https://github.com/ENSL/NS.git
synced 2024-11-27 14:52:11 +00:00
04c334c94b
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@15 67975925-1194-0748-b3d5-c16f83f1a3a1
54 lines
No EOL
1.5 KiB
C++
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 |