cLocation_L Class Reference

Inheritance diagram for cLocation_L:

Inheritance graph
[legend]
Collaboration diagram for cLocation_L:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void RegisterMethods (lua_State *L)
 called by Register(), registers object-methods (see cLuaBind constructor for examples)
virtual const char * GetLuaTypeName ()

Static Public Member Functions

static int CreateLocation (lua_State *L)
 for lua : cLocation* CreateLocation ();
static int Destroy (lua_State *L)
static int GetBoundRad (lua_State *L)
 for lua : float GetBoundRad ()
static int SetBoundRad (lua_State *L)
 for lua : void SetBoundRad (float)
static int DeleteAllObjects (lua_State *L)
 for lua : void DeleteAllObjects ()
static int StepAllObjects (lua_State *L)
 for lua : void StepAllObjects (iCurTime,fPhysStepTime,bIncResyncCounterLow=false)
static int SendResyncs (lua_State *L)
static int StoreResyncs (lua_State *L)
static int IntersectSphere (lua_State *L)
static int Intersect2DRect (lua_State *L)


Detailed Description

Definition at line 18 of file location_L.cpp.


Member Function Documentation

virtual void cLocation_L::RegisterMethods ( lua_State *  L  )  [inline, virtual]

called by Register(), registers object-methods (see cLuaBind constructor for examples)

Reimplemented from Lugre::cLuaBind< cLocation >.

Definition at line 20 of file location_L.cpp.

References CreateLocation(), DeleteAllObjects(), Destroy(), GetBoundRad(), Intersect2DRect(), IntersectSphere(), PROFILE, REGISTER_METHOD, SendResyncs(), SetBoundRad(), StepAllObjects(), and StoreResyncs().

static int cLocation_L::CreateLocation ( lua_State *  L  )  [inline, static]

for lua : cLocation* CreateLocation ();

Definition at line 38 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::CreateUData(), and PROFILE.

Referenced by RegisterMethods().

static int cLocation_L::Destroy ( lua_State *  L  )  [inline, static]

Definition at line 44 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int cLocation_L::GetBoundRad ( lua_State *  L  )  [inline, static]

for lua : float GetBoundRad ()

Definition at line 50 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int cLocation_L::SetBoundRad ( lua_State *  L  )  [inline, static]

for lua : void SetBoundRad (float)

Definition at line 56 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::checkudata_alive(), cLocation::mfBoundingRad, and PROFILE.

Referenced by RegisterMethods().

static int cLocation_L::DeleteAllObjects ( lua_State *  L  )  [inline, static]

for lua : void DeleteAllObjects ()

Definition at line 62 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::checkudata_alive(), cLocation::DeleteAllObjects(), and PROFILE.

Referenced by RegisterMethods().

static int cLocation_L::StepAllObjects ( lua_State *  L  )  [inline, static]

for lua : void StepAllObjects (iCurTime,fPhysStepTime,bIncResyncCounterLow=false)

Definition at line 69 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::checkudata_alive(), PROFILE, and cLocation::StepAllObjects().

Referenced by RegisterMethods().

static int cLocation_L::SendResyncs ( lua_State *  L  )  [inline, static]

iAddr is a light userdata representing the ip address, e.g. from net_L.cpp : cConnection_L::GetRemoteAddress for lua : int SendResyncs (cUDP_SendSocket*,iAddr,iPort,iMinLastChangeTime) returns the number of resyncs sent

Definition at line 79 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int cLocation_L::StoreResyncs ( lua_State *  L  )  [inline, static]

stores resync packets in a fifo for transmissin other than udp, see also SendResyncs for lua : int StoreResyncs (cFIFO*,iMinLastChangeTime) returns the number of resyncs stored

Definition at line 95 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int cLocation_L::IntersectSphere ( lua_State *  L  )  [inline, static]

lists all objects intersecting the given sphere as table with one-based indices earlyoutrad using location GetBoundRad() only works correctly after physstep and before any other movement leave earlyoutrad nil to disable early out check set earlyoutrad = -1 (or < 0) to use location mfBoundingRad for lua : idtable IntersectSphere (x,y,z,rad,earlyoutrad=nil)

Definition at line 108 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::checkudata_alive(), cObject::GetID(), Lugre::luaSFZ_checkVector3(), cObject::mfBoundingRad, cObject::mvPos, Lugre::mysquare(), and PROFILE.

Referenced by RegisterMethods().

static int cLocation_L::Intersect2DRect ( lua_State *  L  )  [inline, static]

lists all objects whose projected gfx3d boundrad intersects the given 2d rect as table with one-based indices for lua : idtable Intersect2DRect (x0,y0,x1,y1,maxdist=0) idlist[id] = distance

Definition at line 137 of file location_L.cpp.

References Lugre::cLuaBind< cLocation >::checkudata_alive(), cObject::GetID(), Lugre::cOgreWrapper::GetViewportHeight(), Lugre::cOgreWrapper::GetViewportWidth(), cObject::mfBoundingRad, cObject::mvPos, Lugre::mymax(), PROFILE, and Lugre::cOgreWrapper::ProjectSizeAndPos().

Referenced by RegisterMethods().

virtual const char* cLocation_L::GetLuaTypeName (  )  [inline, virtual]

Implements Lugre::cLuaBind< cLocation >.

Definition at line 173 of file location_L.cpp.


The documentation for this class was generated from the following file:

Generated on Wed Feb 8 06:00:16 2012 for cpp by  doxygen 1.5.6