Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TacticEntry Class Reference

The class contains the information needed for one TacticEntry. More...

#include <TacticEntry.h>

List of all members.

Public Member Functions

 TacticEntry ()
 Constructor.

 TacticEntry (int folEntCount)
 Constructor.

 ~TacticEntry ()
 Destructor.

void setFollowingEntryCount (int count)

Public Attributes

int neededOptions [Player::numOfPlayerNumbers]
 .An Array with up to 4 options that are needed for one entry

bool allowedDogs [Player::numOfPlayerNumbers][Player::numOfPlayerNumbers]
 .Which dogs are allowed to do this option ? This is basically a flag array.

bool isOptionClass [Player::numOfPlayerNumbers]
 .is one Option a option-class ?? ..

double weight
 .The TacticEntry itself needs a weight

double optionWeights [Player::numOfPlayerNumbers]
 .Each option needs one weight.

double maxVal
 .What ist the maximum value this TacticEntry can reach This data can be uses to skip TacticEntrys while searching the best matching TacticEntry.

int followingEntryCount
 How many followingEntrys are there ?

int * followingEntrys
 Which TacticEntrys should be preferred after choosing this TacticEntry ?

double * followingEntryWeights
 How would you like to weight your preferred followingEntrys ? .

RateableOptions::TacticEntryTypeID globalAnalysersInfo [RateableOptions::numOfGlobalAnalysers]
 Information for GlobalAnalysers.

char name [50]
 name of the TacticEntry


Detailed Description

The class contains the information needed for one TacticEntry.

Definition at line 19 of file TacticEntry.h.


Constructor & Destructor Documentation

TacticEntry::TacticEntry  ) 
 

Constructor.

Definition at line 13 of file TacticEntry.cpp.

References followingEntryCount.

TacticEntry::TacticEntry int  folEntCount  ) 
 

Constructor.

Definition at line 19 of file TacticEntry.cpp.

References followingEntryCount, followingEntrys, and followingEntryWeights.

TacticEntry::~TacticEntry  ) 
 

Destructor.

Definition at line 29 of file TacticEntry.cpp.

References followingEntryCount, followingEntrys, and followingEntryWeights.


Member Function Documentation

void TacticEntry::setFollowingEntryCount int  count  ) 
 

Definition at line 37 of file TacticEntry.cpp.

References followingEntryCount, followingEntrys, and followingEntryWeights.


Member Data Documentation

int TacticEntry::neededOptions[Player::numOfPlayerNumbers]
 

.An Array with up to 4 options that are needed for one entry

Definition at line 35 of file TacticEntry.h.

Referenced by DefaultTacticChooser::chooseOption(), operator<<(), and operator>>().

bool TacticEntry::allowedDogs[Player::numOfPlayerNumbers][Player::numOfPlayerNumbers]
 

.Which dogs are allowed to do this option ? This is basically a flag array.

eg: 01111 means that all dogs are allowed 01110 means that dog #1 is not allowed for this option. So ( (allowedDogs[dognum] & (1 << dognum)) > 0 ) should be TRUE if Dog #dognum is allowed for option neededOptions[dognum]. But have a look in Player.h. If the playerNumber-enum changes, this test may cause trouble.

forget about this shifting-stuff .. an array of bool does the same, but without all this enum-trusting ;) use: allowedDogs[#dog][#option]

Definition at line 51 of file TacticEntry.h.

Referenced by DefaultTacticChooser::chooseOption(), operator<<(), and operator>>().

bool TacticEntry::isOptionClass[Player::numOfPlayerNumbers]
 

.is one Option a option-class ?? ..

we dont need this yet, but we will be happy to have this *g*

Definition at line 58 of file TacticEntry.h.

Referenced by DefaultTacticChooser::chooseOption(), and operator>>().

double TacticEntry::weight
 

.The TacticEntry itself needs a weight

Definition at line 63 of file TacticEntry.h.

Referenced by DefaultTacticChooser::chooseOption(), operator<<(), and operator>>().

double TacticEntry::optionWeights[Player::numOfPlayerNumbers]
 

.Each option needs one weight.

So here they are

Definition at line 69 of file TacticEntry.h.

Referenced by DefaultTacticChooser::chooseOption(), operator<<(), and operator>>().

double TacticEntry::maxVal
 

.What ist the maximum value this TacticEntry can reach This data can be uses to skip TacticEntrys while searching the best matching TacticEntry.

Definition at line 77 of file TacticEntry.h.

Referenced by operator<<(), and operator>>().

int TacticEntry::followingEntryCount
 

How many followingEntrys are there ?

Definition at line 82 of file TacticEntry.h.

Referenced by operator<<(), operator>>(), setFollowingEntryCount(), TacticEntry(), and ~TacticEntry().

int* TacticEntry::followingEntrys
 

Which TacticEntrys should be preferred after choosing this TacticEntry ?

Definition at line 87 of file TacticEntry.h.

Referenced by operator<<(), operator>>(), setFollowingEntryCount(), TacticEntry(), and ~TacticEntry().

double* TacticEntry::followingEntryWeights
 

How would you like to weight your preferred followingEntrys ? .

Definition at line 92 of file TacticEntry.h.

Referenced by operator<<(), operator>>(), setFollowingEntryCount(), TacticEntry(), and ~TacticEntry().

RateableOptions::TacticEntryTypeID TacticEntry::globalAnalysersInfo[RateableOptions::numOfGlobalAnalysers]
 

Information for GlobalAnalysers.

Each Analyser can store an integer here to identify the Class of TacticEntry, e.g. is an offensive TacticEntry..

Definition at line 98 of file TacticEntry.h.

Referenced by DefaultTacticChooser::chooseOption(), operator<<(), and operator>>().

char TacticEntry::name[50]
 

name of the TacticEntry

Definition at line 106 of file TacticEntry.h.

Referenced by DefaultTacticChooser::chooseOption(), operator<<(), and operator>>().


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:11:57 2004 for GT2004 by doxygen 1.3.6