MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / FirstObject

Method FirstObject

LuaSTGPlus/GameObjectPool.cpp:997–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997int GameObjectPool::FirstObject(int groupId)LNOEXCEPT
998{
999 GameObject* p;
1000
1001 // �������һ����Ч�ķ��飬��������������б���
1002 if (groupId < 0 || groupId >= LGOBJ_GROUPCNT)
1003 {
1004 p = m_pObjectListHeader.pObjectNext;
1005 if (p == &m_pObjectListTail)
1006 return -1;
1007 else
1008 return static_cast<int>(p->id);
1009 }
1010 else
1011 {
1012 p = m_pCollisionListHeader[groupId].pCollisionNext;
1013 if (p == &m_pCollisionListTail[groupId])
1014 return -1;
1015 else
1016 return static_cast<int>(p->id);
1017 }
1018}
1019
1020int GameObjectPool::GetAttr(lua_State* L)LNOEXCEPT
1021{

Callers 1

ObjListMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected