Energy manager: Returns true if this device can receive power plug of the other device.
См. определение в файле ComponentEnergyManager.c строка 1002
1003 {
1004
1006 {
1007 if ( device_to_plug.GetCompEM().GetEnergySource() !=
m_ThisEntityAI)
1008 {
1010 {
1011 if ( device_to_plug.GetCompEM().IsEnergySourceAtReach( device_to_plug.GetPosition(), 0,
m_ThisEntityAI.GetPosition() ) )
1012 {
1013 return true;
1014 }
1015 }
1016 }
1017 }
1018
1019 return false;
1020 }
bool HasFreeSocket(int socket_id=-1)
Energy manager: Returns true if this device has any free socket to receive a plug....
bool IsPlugCompatible(int plug_ID)
Energy manager: Checks if the given plug is compatible with this device's socket. Used by CanReceiveP...
Перекрестные ссылки HasFreeSocket(), IsPlugCompatible() и Component::m_ThisEntityAI.
Используется в PlugInDevice().