/** * @luafunc GameType LuaGameInfo::getGameType() * * @brief Get the \ref GameTypeEnum of the current game. * * @desc For possible values, see \ref GameTypeEnum. * * @code * print(info:getGameType() == GameType.CTFGameType) -- `true` when playing CTF * @endcode * * @return A member of \ref GameTypeEnum. */ S32 LuaGameInfo::lua_getGameType(lua_State *L) { TNLAssert(mServerGame->getGameType(), "Need Gametype check in getGameType"); return returnInt(L, mServerGame->getGameType()->getGameTypeId()); }
const Vector<Point> *SimpleLineGeometry::getFill() const { TNLAssert(false, "SimpleLines do not have fill!"); return NULL; }
void SimpleLineGeometry::readGeom(S32 argc, const char **argv, S32 firstCoord, F32 gridSize) { TNLAssert(false, "Haven't figured this one out yet!"); }
const Vector<Point> *PointGeometry::getOutline() const { TNLAssert(false, "Points do not have an inherent outline -- if you need an outline for this object, " "please implement an override for getOutline() in the object itself."); return NULL; }
void Geometry::read(unsigned char *geom, S32 bytes) { TNLAssert(false, "Not implemented"); }
string Geometry::geomToLevelCode() const { TNLAssert(false, "Not implemented"); return string(); }
Rect Geometry::calcExtents() const { TNLAssert(false, "Not implemented"); return Rect(); }
bool Geometry::deleteVert(S32 vertIndex) { TNLAssert(false, "Not implemented"); return false; }
bool Geometry::insertVert(Point vertex, S32 vertIndex) { TNLAssert(false, "Not implemented"); return false; }
F32 PolygonGeometry::getLabelAngle() const { TNLAssert(!mTriangluationDisabled, "Triangluation disabled!"); return mLabelAngle; }
bool Geometry::addVertFront(Point vert) { TNLAssert(false, "Not implemented"); return false; }
Point PolygonGeometry::getCentroid() const { TNLAssert(!mTriangluationDisabled, "Triangluation disabled!"); return Parent::getCentroid(); }
const Vector<Point> *PolygonGeometry::getFill() const { TNLAssert(!mTriangluationDisabled, "Triangluation disabled!"); return &mPolyFill; }
bool Geometry::addVert(const Point &point, bool ignoreMaxPointsLimit) { TNLAssert(false, "Not implemented"); return false; }
void Geometry::unpackGeom(GhostConnection *connection, BitStream *stream) { TNLAssert(false, "Not implemented"); }
bool Geometry::anyVertsSelected() { TNLAssert(false, "Not implemented"); return false; }
void Geometry::setGeom(const Vector<Point> &points) { TNLAssert(false, "Not implemented"); }
void Geometry::unselectVert(S32 vertIndex) { TNLAssert(false, "Not implemented"); }
void Geometry::readGeom(S32 argc, const char **argv, S32 firstCoord, F32 gridSize) { TNLAssert(false, "Not implemented"); }
void Geometry::unselectVerts() { TNLAssert(false, "Not implemented"); }
GeomType Geometry::getGeomType() const { TNLAssert(false, "Not implemented"); return geomNone; }
bool Geometry::vertSelected(S32 vertIndex) { TNLAssert(false, "Not implemented"); return false; }
const Vector<Point> *PointGeometry::getFill() const { TNLAssert(false, "Points do not have fill!"); return NULL; }
const Vector<Point> *Geometry::getFill() const { TNLAssert(false, "Not implemented"); return NULL; }
void Geometry::write(BitStream *stream) const { TNLAssert(false, "Not implemented"); }
Point Geometry::getCentroid() const { TNLAssert(false, "Not implemented"); return Point(); }
void Geometry::disableTriangulation() { TNLAssert(false, "Not implemented"); }
F32 Geometry::getLabelAngle() const { TNLAssert(false, "Not implemented"); return 0; }
Point Geometry::getVert(S32 index) const { TNLAssert(false, "Not implemented"); return Point(); }
Journal::Journal() { TNLAssert(mJournal == NULL, "Cannot construct more than one Journal instance."); mJournal = this; }