Home
last modified time | relevance | path

Searched refs:allyTeamID (Results 1 – 16 of 16) sorted by relevance

/dports/games/spring/spring_98.0/cont/base/springcontent/LuaGadgets/Gadgets/
H A Dgame_end.lua123 teamToAllyTeam[teamID] = allyTeamID
150 allyTeamInfos[allyTeamID] = allyTeamInfo
158 …return not allyTeamInfos[allyTeamID].dead and (ignoreGaia == 0 or not allyTeamInfos[allyTeamID].is…
165 for allyTeamID in pairs(allyTeamInfos) do
166 if IsCandidateWinner(allyTeamID) then
232 allyTeamInfos[allyTeamID].dead = dead
277 UpdateAllyTeamIsDead(allyTeamID)
286 allyTeamInfos[allyTeamID] = allyTeamInfo
287 UpdateAllyTeamIsDead(allyTeamID)
295 allyTeamInfos[allyTeamID] = allyTeamInfo
[all …]
H A Dunit_limit_dgun.lua67 for allyIndex,allyTeamID in ipairs(allyTeamVec) do
68 local teamList = GetTeamList(allyTeamID)
H A Dobject_statusbars_default.lua16 function gadget:FeatureCreated(featureID, allyTeamID)
19 function gadget:FeatureDestroyed(featureID, allyTeamID)
/dports/games/spring/spring_98.0/rts/Lua/
H A DLuaUtils.h221 static inline bool CanControlAllyTeam(const lua_State *L, int allyTeamID) in CanControlAllyTeam() argument
227 return (teamHandler->AllyTeam(ctrlTeam) == allyTeamID); in CanControlAllyTeam()
241 static inline bool CanControlFeatureAllyTeam(const lua_State *L, int allyTeamID) in CanControlFeatureAllyTeam() argument
247 if (allyTeamID < 0) { in CanControlFeatureAllyTeam()
250 return (teamHandler->AllyTeam(ctrlTeam) == allyTeamID); in CanControlFeatureAllyTeam()
260 static inline bool CanControlProjectileAllyTeam(const lua_State *L, int allyTeamID) in CanControlProjectileAllyTeam() argument
266 if (allyTeamID < 0) { in CanControlProjectileAllyTeam()
269 return (teamHandler->AllyTeam(ctrlTeam) == allyTeamID); in CanControlProjectileAllyTeam()
H A DLuaUnsyncedRead.cpp738 allyTeamID = teamHandler->AllyTeam(teamID); in GetVisibleUnits()
740 if (allyTeamID < 0) { in GetVisibleUnits()
831 if (allyTeamID >= 0 && !(unit->losStatus[allyTeamID] & LOS_INLOS)) in GetVisibleUnits()
860 int allyTeamID = luaL_optint(L, 1, -1); in GetVisibleFeatures() local
862 if (allyTeamID >= 0) { in GetVisibleFeatures()
863 if (!teamHandler->ValidAllyTeam(allyTeamID)) { in GetVisibleFeatures()
867 allyTeamID = -1; in GetVisibleFeatures()
958 int allyTeamID = luaL_optint(L, 1, -1); in GetVisibleProjectiles() local
960 if (allyTeamID >= 0) { in GetVisibleProjectiles()
965 allyTeamID = -1; in GetVisibleProjectiles()
[all …]
H A DLuaSyncedRead.cpp1068 int allyTeamID = -1; in GetTeamList() local
1070 allyTeamID = lua_toint(L, 1); in GetTeamList()
1082 if ((allyTeamID < 0) || (allyTeamID == teamHandler->AllyTeam(t))) { in GetTeamList()
5018 if (allyTeamID >= 0) { in GetPositionLosState()
5054 if (allyTeamID >= 0) { in IsPosInLos()
5055 state = losHandler->InLos(pos, allyTeamID); in IsPosInLos()
5080 if (allyTeamID >= 0) { in IsPosInRadar()
5106 if (allyTeamID >= 0) { in IsPosInAirLos()
5400 const int allyTeamID = lua_tonumber(L, 1); in GetRadarErrorParams() local
5463 const int allyTeamID = luaL_checkint(L, 1); in GetCOBAllyTeamVar() local
[all …]
H A DLuaHandleSynced.h61 bool AllowFeatureCreation(const FeatureDef* featureDef, int allyTeamID, const float3& pos);
H A DLuaSyncedCtrl.cpp642 const unsigned char allyTeamID = lua_toint(L, -1); in GameOver() local
644 if (!teamHandler->ValidAllyTeam(allyTeamID)) { in GameOver()
648 winningAllyTeams.push_back(allyTeamID); in GameOver()
2477 params.allyTeamID = allyTeam; in CreateFeature()
3739 const int allyTeamID = lua_tonumber(L, 1); in SetRadarErrorParams() local
3741 if (!teamHandler->IsValidAllyTeam(allyTeamID)) in SetRadarErrorParams()
3744 radarHandler->SetAllyTeamRadarErrorSize(allyTeamID, luaL_checknumber(L, 2)); in SetRadarErrorParams()
H A DLuaUnsyncedCtrl.cpp471 const int allyTeamID = luaL_checkint(L, 1); in SendMessageToAllyTeam() local
472 if (allyTeamID == gu->myAllyTeam) { in SendMessageToAllyTeam()
/dports/games/spring/spring_98.0/cont/examples/Widgets/
H A Dgui_hilight_unit.lua246 local allyTeamID = spGetFeatureAllyTeam(featureID)
247 if ((allyTeamID == nil) or (allyTeamID < 0)) then
249 elseif (allyTeamID == spGetMyAllyTeamID()) then
/dports/games/spring/spring_98.0/rts/Sim/Features/
H A DFeatureHandler.h29 int allyTeamID; member
H A DFeature.cpp161 allyteam = params.allyTeamID; in Initialize()
/dports/games/spring/spring_98.0/rts/System/
H A DEventClient.cpp58 bool CEventClient::AllowFeatureCreation(const FeatureDef* featureDef, int allyTeamID, const float3&… in AllowFeatureCreation() argument
H A DEventHandler.cpp248 bool CEventHandler::AllowFeatureCreation(const FeatureDef* featureDef, int allyTeamID, const float3… in AllowFeatureCreation() argument
250 CONTROL_ITERATE_DEF_TRUE(AllowFeatureCreation, featureDef, allyTeamID, pos) in AllowFeatureCreation()
H A DEventClient.h210 …virtual bool AllowFeatureCreation(const FeatureDef* featureDef, int allyTeamID, const float3& pos);
H A DEventHandler.h153 bool AllowFeatureCreation(const FeatureDef* featureDef, int allyTeamID, const float3& pos);