Advanced Strategic Command
Functions
autotraining.cpp File Reference

Trains units in training centers automatically at each turn's end. More...

#include "player.h"
#include "gamemap.h"
#include "actions/trainunitcommand.h"
#include "actions/servicecommand.h"
Include dependency graph for autotraining.cpp:

Go to the source code of this file.

Functions

static void autoTrainer (ContainerBase *container)
 
void automaticTrainig (GameMap *gamemap, Player &player)
 trains all units that are in training centers, which increases their experience at the cost of time (units lose all movement) and ammo More...
 

Detailed Description

Trains units in training centers automatically at each turn's end.

Definition in file autotraining.cpp.

Function Documentation

void automaticTrainig ( GameMap gamemap,
Player player 
)

trains all units that are in training centers, which increases their experience at the cost of time (units lose all movement) and ammo

Definition at line 62 of file autotraining.cpp.

References autoTrainer(), Player::buildingList, and Player::vehicleList.

Referenced by gamethread(), and runTester().

static void autoTrainer ( ContainerBase container)
static