Beispiel #1
0
/**
 * @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());
}
Beispiel #2
0
const Vector<Point> *SimpleLineGeometry::getFill() const
{
   TNLAssert(false, "SimpleLines do not have fill!");
   return NULL;
}
Beispiel #3
0
void SimpleLineGeometry::readGeom(S32 argc, const char **argv, S32 firstCoord, F32 gridSize)
{
   TNLAssert(false, "Haven't figured this one out yet!");
}
Beispiel #4
0
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;
}
Beispiel #5
0
void Geometry::read(unsigned char *geom, S32 bytes)
{
   TNLAssert(false, "Not implemented");
}
Beispiel #6
0
string Geometry::geomToLevelCode() const
{
   TNLAssert(false, "Not implemented");
   return string();
}
Beispiel #7
0
Rect Geometry::calcExtents() const
{
   TNLAssert(false, "Not implemented");
   return Rect();
}
Beispiel #8
0
bool Geometry::deleteVert(S32 vertIndex)
{
   TNLAssert(false, "Not implemented");
   return false;
}
Beispiel #9
0
bool Geometry::insertVert(Point vertex, S32 vertIndex)
{
   TNLAssert(false, "Not implemented");
   return false;
}
Beispiel #10
0
F32 PolygonGeometry::getLabelAngle() const
{
   TNLAssert(!mTriangluationDisabled, "Triangluation disabled!");
   return mLabelAngle;
}
Beispiel #11
0
bool Geometry::addVertFront(Point vert)
{
   TNLAssert(false, "Not implemented");
   return false;
}
Beispiel #12
0
Point PolygonGeometry::getCentroid() const
{
   TNLAssert(!mTriangluationDisabled, "Triangluation disabled!");
   return Parent::getCentroid();
}
Beispiel #13
0
const Vector<Point> *PolygonGeometry::getFill() const
{
   TNLAssert(!mTriangluationDisabled, "Triangluation disabled!");
   return &mPolyFill;
}
Beispiel #14
0
bool Geometry::addVert(const Point &point, bool ignoreMaxPointsLimit)
{
   TNLAssert(false, "Not implemented");
   return false;
}
Beispiel #15
0
void Geometry::unpackGeom(GhostConnection *connection, BitStream *stream)
{
   TNLAssert(false, "Not implemented");
}
Beispiel #16
0
bool Geometry::anyVertsSelected()
{
   TNLAssert(false, "Not implemented");
   return false;
}
Beispiel #17
0
void Geometry::setGeom(const Vector<Point> &points)
{
   TNLAssert(false, "Not implemented");
}
Beispiel #18
0
void Geometry::unselectVert(S32 vertIndex)
{
   TNLAssert(false, "Not implemented");
}
Beispiel #19
0
void Geometry::readGeom(S32 argc, const char **argv, S32 firstCoord, F32 gridSize)
{
   TNLAssert(false, "Not implemented");
}
Beispiel #20
0
void Geometry::unselectVerts()
{
   TNLAssert(false, "Not implemented");
}
Beispiel #21
0
GeomType Geometry::getGeomType() const
{
   TNLAssert(false, "Not implemented");
   return geomNone;
}
Beispiel #22
0
bool Geometry::vertSelected(S32 vertIndex)
{
   TNLAssert(false, "Not implemented");
   return false;
}
Beispiel #23
0
const Vector<Point> *PointGeometry::getFill() const
{
   TNLAssert(false, "Points do not have fill!");
   return NULL;
}
Beispiel #24
0
const Vector<Point> *Geometry::getFill() const
{
   TNLAssert(false, "Not implemented");
   return NULL;
}
Beispiel #25
0
void Geometry::write(BitStream *stream) const
{
   TNLAssert(false, "Not implemented");
}
Beispiel #26
0
Point Geometry::getCentroid() const
{
   TNLAssert(false, "Not implemented");
   return Point();
}
Beispiel #27
0
void Geometry::disableTriangulation()
{
   TNLAssert(false, "Not implemented");
}
Beispiel #28
0
F32 Geometry::getLabelAngle() const
{
   TNLAssert(false, "Not implemented");
   return 0;
}
Beispiel #29
0
Point Geometry::getVert(S32 index) const
{
   TNLAssert(false, "Not implemented");
   return Point();
}
Beispiel #30
0
Journal::Journal()
{
   TNLAssert(mJournal == NULL, "Cannot construct more than one Journal instance.");
   mJournal = this;
}