world.cpp
cowmud-0.11/src/world.cpp · 373 B
From the archive cowmud-0.11.tar.gz
Download the archive « Back to the archive contents
#include "world.h"
World::World()
{
}
int World::Length()
{
return sectors.listLength();
}
void World::Insert(int index, struct Poly *sector)
{
sectors.listInsert(index, sector);
}
struct Poly* World::Retrieve(int index)
{
struct Poly* p;
sectors.listRetrieve(index, p);
return p;
}
void World::Remove(int index)
{
sectors.listDelete(index);
}