#include <DefaultTacticChooser.h>
Inheritance diagram for DefaultTacticChooser:
Public Member Functions | |
DefaultTacticChooser (const BehaviorControlInterfaces &interfaces, CollectedBeliefs &collectedBeliefs, ChooserRaterInterfaces &chooserRaterInterfaces) | |
~DefaultTacticChooser () | |
RateableOptions::OptionID | chooseOption () |
virtual bool | handleMessage (InMessage &message) |
Public Attributes | |
TacticEntryArray | tacticEntryArray |
int | freeze |
RateableOptions::OptionID | ocplayerrole [Player::numOfPlayerNumbers] |
Private Attributes | |
int | facOfNumOfPlayerNumbers |
int * | dogPermutation [Player::numOfPlayerNumbers] |
Definition at line 24 of file DefaultTacticChooser.h.
DefaultTacticChooser::DefaultTacticChooser | ( | const BehaviorControlInterfaces & | interfaces, | |
CollectedBeliefs & | collectedBeliefs, | |||
ChooserRaterInterfaces & | chooserRaterInterfaces | |||
) |
Constructor.
interfaces | The parameters of the TacticChooser class. | |
collectedBeliefs | The collected-Beliefs to work on. | |
chooserRaterInterfaces | We want to talk to the Option-Rating. |
Definition at line 18 of file DefaultTacticChooser.cpp.
References dogPermutation, InFile::exists(), facOfNumOfPlayerNumbers, freeze, getLocation(), idText, Player::numOfPlayerNumbers, OUTPUT, tacticEntryArray, and text.
DefaultTacticChooser::~DefaultTacticChooser | ( | ) |
Definition at line 88 of file DefaultTacticChooser.cpp.
References dogPermutation, and Player::numOfPlayerNumbers.
RateableOptions::OptionID DefaultTacticChooser::chooseOption | ( | ) | [virtual] |
choosing one option in here...
Implements TacticChooser.
Definition at line 112 of file DefaultTacticChooser.cpp.
References TacticEntry::allowedDogs, buffer, TacticChooser::chooserRaterInterfaces, TacticChooser::collectedBeliefs, dogPermutation, TacticEntryArray::entryCount, TacticEntryArray::entrys, facOfNumOfPlayerNumbers, FADING_END_TIME, FADING_START_TIME, freeze, SystemCall::getCurrentSystemTime(), RateableOptions::getOptionName(), getPlayer(), TacticChooser::globalAnalyser, TacticEntry::globalAnalysersInfo, idChoosenOption, idChoosenTacticEntry, idTimeWeights, INFO, TacticEntry::isOptionClass, RateableOptions::keepOption, ChooserRaterInterfaces::lastChoosenOption, TacticEntry::name, TacticEntry::neededOptions, RateableOptions::noOption, RateableOptions::numOfGlobalAnalysers, Player::numOfPlayerNumbers, ocplayerrole, TacticEntry::optionWeights, CollectedBeliefs::singleBeliefs, RateableOptions::stand, tacticEntryArray, text, SingleBeliefs::timeStamp, and TacticEntry::weight.
bool DefaultTacticChooser::handleMessage | ( | InMessage & | message | ) | [virtual] |
receiving new TacicEntryArrays in here
Reimplemented from TacticChooser.
Definition at line 95 of file DefaultTacticChooser.cpp.
References InMessage::bin, freeze, InMessage::getMessageID(), idFreezeRequest, idTacticEntryArray, and tacticEntryArray.
int* DefaultTacticChooser::dogPermutation[Player::numOfPlayerNumbers] [private] |
Definition at line 28 of file DefaultTacticChooser.h.
Referenced by chooseOption(), DefaultTacticChooser(), and ~DefaultTacticChooser().
int DefaultTacticChooser::facOfNumOfPlayerNumbers [private] |
Definition at line 27 of file DefaultTacticChooser.h.
Referenced by chooseOption(), and DefaultTacticChooser().
if true, the robots should stand still, e.g. using option stand
Definition at line 49 of file DefaultTacticChooser.h.
Referenced by chooseOption(), DefaultTacticChooser(), and handleMessage().
RateableOptions::OptionID DefaultTacticChooser::ocplayerrole[Player::numOfPlayerNumbers] |
role of team player
Definition at line 56 of file DefaultTacticChooser.h.
Referenced by chooseOption().
the TacticEntryArray to work with...
Definition at line 46 of file DefaultTacticChooser.h.
Referenced by chooseOption(), DefaultTacticChooser(), and handleMessage().