void search() { if (searched) return; searched = true; Node *start_node = new (node_pool.malloc()) Node(domain.get_start_state(), 0, 0); domain.compute_heuristic(*start_node); goal = idastar_search(start_node); }
void *PickupGrantUpdate::operator new(size_t aSize) { return killpool.malloc(); }
void *Pickup::operator new(size_t aSize) { return pool.malloc(); }
void *Weapon::operator new(size_t aSize) { return pool.malloc(); }
void *Collidable::operator new(size_t aSize) { return pool.malloc(); }
void *VarCommand::operator new(size_t aSize) { return varcommandpool.malloc(); }
void *Spawner::operator new(size_t aSize) { return pool.malloc(); }
void *VarScope::operator new(size_t aSize) { return varscopepool.malloc(); }
void *VarString::operator new(size_t aSize) { return varstringpool.malloc(); }
void *VarFloat::operator new(size_t aSize) { return varfloatpool.malloc(); }
void *VarInteger::operator new(size_t aSize) { return varintegerpool.malloc(); }
void* SimpleParticle::operator new(size_t count) { assert(count <= sizeof(SimpleParticle)); return particlePool.malloc(); }