#include <src/Commands/AIBasePlan.h>
List of all members.
Constructor & Destructor Documentation
virtual AIBasePlanCommandClass::~AIBasePlanCommandClass |
( |
| ) |
[inline, virtual] |
AIBasePlanCommandClass::AIBasePlanCommandClass |
( |
| ) |
[inline] |
Member Function Documentation
virtual void AIBasePlanCommandClass::Execute |
( |
DWORD |
dwUnk | ) |
[inline, virtual] |
{
Debug::Log("AI Base Plans:\n");
for(int i = 0; i < HouseClass::Array->Count; ++i) {
auto H = HouseClass::Array->GetItem(i);
if(!H->IsHumanoid()) {
Debug::Log("#%02d: country %25s:\n", i, H->Type->ID);
auto b = &H->Base.BaseNodes;
for(int j = 0; j < b->Count; ++j) {
auto n = b->GetItem(j);
auto idx = n.BuildingTypeIndex;
if(idx >= 0) {
auto lbl = BuildingTypeClass::Array->GetItem(idx)->ID;
Debug::Log("\tNode #%03d: %s @ (%05d, %05d), Attempts so far: %d, Placed: %d\n"
, j, lbl, n.MapCoords.X, n.MapCoords.Y, n.Attempts, n.Placed);
} else {
Debug::Log("\tNode #%03d: Special %d @ (%05d, %05d), Attempts so far: %d, Placed: %d\n"
, j, idx, n.MapCoords.X, n.MapCoords.Y, n.Attempts, n.Placed);
}
}
Debug::Log("\n");
}
}
}
virtual const char* AIBasePlanCommandClass::GetName |
( |
| ) |
[inline, virtual] |
{ return "Dump AI Base Plan"; }
virtual const wchar_t* AIBasePlanCommandClass::GetUICategory |
( |
| ) |
[inline, virtual] |
{ return L"Development"; }
virtual const wchar_t* AIBasePlanCommandClass::GetUIDescription |
( |
| ) |
[inline, virtual] |
{ return L"Dumps the AI Base Plans to the log"; }
virtual const wchar_t* AIBasePlanCommandClass::GetUIName |
( |
| ) |
[inline, virtual] |
{ return L"AI Base Plan Logger"; }
The documentation for this class was generated from the following file: