poly.cpp
cowmud-0.11/src/poly.cpp · 331 B
From the archive cowmud-0.11.tar.gz
Download the archive « Back to the archive contents
#include "poly.h"
Poly::Poly()
{
}
int Poly::Length()
{
return walls.listLength();
}
void Poly::Insert(int index, Line& wall)
{
walls.listInsert(index, wall);
}
Line Poly::Retrieve(int index)
{
Line l;
walls.listRetrieve(index, l);
return l;
}
void Poly::Remove(int index)
{
walls.listDelete(index);
}