Home
last modified time | relevance | path

Searched refs:AllowResourceTransfer (Results 1 – 12 of 12) sorted by relevance

/dports/games/spring/spring_98.0/cont/base/springcontent/LuaGadgets/Gadgets/
H A Dshare_control.lua191 function gadget:AllowResourceTransfer(oldTeam, newTeam, type, amount) function
/dports/games/spring/spring_98.0/rts/Sim/Misc/
H A DTeam.cpp209 if (eventHandler.AllowResourceTransfer(teamNum, toTeam, "m", metal)) { in GiveEverythingTo()
213 if (eventHandler.AllowResourceTransfer(teamNum, toTeam, "e", energy)) { in GiveEverythingTo()
/dports/games/spring/spring_98.0/rts/Net/
H A DNetCommands.cpp783 if (eventHandler.AllowResourceTransfer(srcTeam, dstTeam, "m", metalShare)) { in ClientReadNet()
789 if (eventHandler.AllowResourceTransfer(srcTeam, dstTeam, "e", energyShare)) { in ClientReadNet()
854 if (eventHandler.AllowResourceTransfer(srcTeamID, dstTeamID, "m", metalShare)) { in ClientReadNet()
864 if (eventHandler.AllowResourceTransfer(srcTeamID, dstTeamID, "e", energyShare)) { in ClientReadNet()
/dports/games/spring/spring_98.0/rts/System/
H A DEventClient.cpp61 bool CEventClient::AllowResourceTransfer(int oldTeam, int newTeam, const string& type, float amount… in AllowResourceTransfer() function in CEventClient
H A DEventHandler.cpp266 bool CEventHandler::AllowResourceTransfer(int oldTeam, int newTeam, const string& type, float amoun… in AllowResourceTransfer() function in CEventHandler
268 CONTROL_ITERATE_DEF_TRUE(AllowResourceTransfer, oldTeam, newTeam, type, amount) in AllowResourceTransfer()
H A DEvents.def155 SETUP_EVENT(AllowResourceTransfer, MANAGED_BIT | CONTROL_BIT)
H A DEventClient.h213 virtual bool AllowResourceTransfer(int oldTeam, int newTeam, const string& type, float amount);
H A DEventHandler.h156 bool AllowResourceTransfer(int oldTeam, int newTeam, const string& type, float amount);
/dports/games/spring/spring_98.0/rts/Lua/
H A DLuaHandleSynced.h64 bool AllowResourceTransfer(int oldTeam, int newTeam, const string& type, float amount);
H A DLuaHandleSynced.cpp690 bool CSyncedLuaHandle::AllowResourceTransfer(int oldTeam, int newTeam, in AllowResourceTransfer() function in CSyncedLuaHandle
H A DLuaSyncedCtrl.cpp841 …if (eventHandler.AllowResourceTransfer(teamID1, teamID2, "m", amount)) { //FIXME can cause an endl… in ShareTeamResource()
851 …if (eventHandler.AllowResourceTransfer(teamID1, teamID2, "e", amount)) { //FIXME can cause an endl… in ShareTeamResource()
/dports/games/spring/spring_98.0/cont/base/springcontent/LuaGadgets/
H A Dgadgets.lua1138 function gadgetHandler:AllowResourceTransfer(oldTeamID, newTeamID, res, amount) function
1140 if (not g:AllowResourceTransfer(oldTeamID, newTeamID, res, amount)) then