BTHAI 2.3
Public Member Functions | Static Public Member Functions
UpgradesPlanner Class Reference

#include <UpgradesPlanner.h>

List of all members.

Public Member Functions

 ~UpgradesPlanner ()
bool checkUpgrade (BaseAgent *agent)

Static Public Member Functions

static UpgradesPlannergetInstance ()

Detailed Description

UpgradesPlanner contains which updates/techs to be research and in which order.

The UpgradesPlanner is implemented as a singleton class. Each class that needs to access UpgradesPlanner can request an instance, and all classes shares the same UpgradesPlanner instance.

Author: Johan Hagelback (johan.hagelback@gmail.com)


Constructor & Destructor Documentation

UpgradesPlanner::~UpgradesPlanner ( )

Destructor.


Member Function Documentation

bool UpgradesPlanner::checkUpgrade ( BaseAgent agent)

Checks if there is an upgrade the specified agent need to upgrade/research.

UpgradesPlanner * UpgradesPlanner::getInstance ( ) [static]

Returns the instance to the UpgradesPlanner that is currently used.


The documentation for this class was generated from the following files:
 All Classes Functions Variables