#include "worldmap.h" dWMHud_c *dWMHud_c::instance = 0; dWMHud_c *dWMHud_c::build() { OSReport("Creating WM_Hud\n"); void *buffer = AllocFromGameHeap1(sizeof(dWMHud_c)); dWMHud_c *c = new(buffer) dWMHud_c; OSReport("Created WM_Hud @ %p\n", c); instance = c; return c; } dWMHud_c::dWMHud_c() { layoutLoaded = false; } int dWMHud_c::onCreate() { if (!layoutLoaded) { bool gotFile = layout.loadArc("maphud.arc", false); if (!gotFile) return false; layout.build("banner.brlyt"); layoutLoaded = true; } return true; } int dWMHud_c::onDelete() { return layout.free(); } int dWMHud_c::onExecute() { layout.execAnimations(); layout.update(); return true; } int dWMHud_c::onDraw() { layout.scheduleForDrawing(); return true; }