コード例 #1
0
 def __init__(self, *args):
     Component.__init__(self, *args)
     self.isActive = False
     self.activeTimestamp = None
     self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)
     self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED,
                             self.OnSlimItemUpdated)
コード例 #2
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     logger.debug('Adding a behavior to %s of type %s', itemID, typeID)
     self.SubscribeToMessage(messages.MSG_ON_ADDED_TO_SPACE,
                             self.OnAddedToSpace)
     self.SubscribeToMessage(messages.MSG_ON_REMOVED_FROM_SPACE,
                             self.OnRemovedFromSpace)
コード例 #3
0
 def __init__(self, *args):
     Component.__init__(self, *args)
     self.isReinforced = False
     self.reinforceTimestamp = None
     self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnSlimItemUpdated)
     self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED,
                             self.OnSlimItemUpdated)
コード例 #4
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     logger.debug('Micro jump driver component created for item %s of type %s', itemID, typeID)
     self.interactionRange = self.attributes.interactionRange
     self.maxShipMass = self.attributes.maxShipMass
     self.spoolUpDurationMillisec = self.attributes.spoolUpDurationMillisec
     self.ballpark = None
     self.microJumpingShips = set()
     self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)
     self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
コード例 #5
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     logger.debug('Looter component created for item %s of type %s', itemID, typeID)
     self.lootRange = getattr(self.attributes, 'range', maxCargoContainerTransferDistance)
     self.isThreadActive = False
     self.ballpark = None
     self.componentRegistry.SubscribeToItemMessage(itemID, 'OnAddedToSpace', self.OnAddedToSpace)
     self.componentRegistry.SubscribeToItemMessage(itemID, 'OnRemovedFromSpace', self.OnRemovedFromSpace)
     self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_BALLPARK_RELEASE, self.OnBallparkRelease)
     self.SetIntervalInSeconds(self.attributes.cycleTimeSeconds)
コード例 #6
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.unlockTimestamp = None
     self.unlockSeconds = 0
     self.tagSpawnSeconds = attributes.tagSpawnDelay
     self.accessRange = attributes.accessRange
     self.unlockingShipID = None
     self.lockState = None
     self.tagCalculator = TagCalculator(GetPriceByTagTypeID(attributes.tagTypeIDs))
     self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdated)
     sm.RegisterNotify(self)
コード例 #7
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     logger.debug('AutoTractorBeam component created for item %s of type %s', itemID, typeID)
     self.isThreadActive = False
     self.ballpark = None
     self.targetID = None
     self.ownerID = None
     self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace)
     self.SubscribeToMessage('OnRemovedFromSpace', self.OnRemovedFromSpace)
     self.SubscribeToMessage(MSG_ON_BALLPARK_RELEASE, self.OnBallparkRelease)
     self.SetIntervalInSeconds(self.attributes.cycleTimeSeconds)
コード例 #8
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.eventLogger = self.componentRegistry.eventLogger
     self.GetWallclockTime = componentRegistry.asyncFuncs.GetWallclockTime
     self.GetSimTime = componentRegistry.asyncFuncs.GetSimTime
     self.SleepSim = componentRegistry.asyncFuncs.SleepSim
     self.TimeDiffInMs = componentRegistry.asyncFuncs.TimeDiffInMs
     self.UThreadNew = componentRegistry.asyncFuncs.UThreadNew
     self.isActive = False
     self.activeTimestamp = None
     componentRegistry.SubscribeToItemMessage(self.itemID, 'OnAddedToSpace', self.OnAddedToSpace)
     componentRegistry.SubscribeToItemMessage(self.itemID, 'OnRemovedFromSpace', self.OnRemovedFromSpace)
コード例 #9
0
ファイル: bountyEscrow.py プロジェクト: connoryang/1v1dec
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.unlockTimestamp = None
     self.unlockSeconds = 0
     self.tagSpawnSeconds = attributes.tagSpawnDelay
     self.accessRange = attributes.accessRange
     self.unlockingShipID = None
     self.lockState = None
     self.tagCalculator = TagCalculator(
         GetPriceByTagTypeID(attributes.tagTypeIDs))
     self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED,
                             self.OnSlimItemUpdated)
     sm.RegisterNotify(self)
コード例 #10
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     logger.debug(
         'AutoTractorBeam component created for item %s of type %s', itemID,
         typeID)
     self.isThreadActive = False
     self.ballpark = None
     self.targetID = None
     self.ownerID = None
     self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace)
     self.SubscribeToMessage('OnRemovedFromSpace', self.OnRemovedFromSpace)
     self.SubscribeToMessage(MSG_ON_BALLPARK_RELEASE,
                             self.OnBallparkRelease)
     self.SetIntervalInSeconds(self.attributes.cycleTimeSeconds)
コード例 #11
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.eventLogger = self.componentRegistry.eventLogger
     self.GetWallclockTime = componentRegistry.asyncFuncs.GetWallclockTime
     self.GetSimTime = componentRegistry.asyncFuncs.GetSimTime
     self.SleepSim = componentRegistry.asyncFuncs.SleepSim
     self.TimeDiffInMs = componentRegistry.asyncFuncs.TimeDiffInMs
     self.UThreadNew = componentRegistry.asyncFuncs.UThreadNew
     self.isActive = False
     self.activeTimestamp = None
     componentRegistry.SubscribeToItemMessage(self.itemID, 'OnAddedToSpace',
                                              self.OnAddedToSpace)
     componentRegistry.SubscribeToItemMessage(self.itemID,
                                              'OnRemovedFromSpace',
                                              self.OnRemovedFromSpace)
コード例 #12
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     logger.debug(
         'Micro jump driver component created for item %s of type %s',
         itemID, typeID)
     self.interactionRange = self.attributes.interactionRange
     self.maxShipMass = self.attributes.maxShipMass
     self.spoolUpDurationMillisec = self.attributes.spoolUpDurationMillisec
     self.ballpark = None
     self.microJumpingShips = set()
     self.componentRegistry.SubscribeToItemMessage(itemID,
                                                   MSG_ON_ADDED_TO_SPACE,
                                                   self.OnAddedToSpace)
     self.componentRegistry.SubscribeToItemMessage(
         itemID, MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
コード例 #13
0
ファイル: autoLooter.py プロジェクト: connoryang/1v1dec
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     logger.debug('Looter component created for item %s of type %s', itemID,
                  typeID)
     self.lootRange = getattr(self.attributes, 'range',
                              maxCargoContainerTransferDistance)
     self.isThreadActive = False
     self.ballpark = None
     self.componentRegistry.SubscribeToItemMessage(itemID, 'OnAddedToSpace',
                                                   self.OnAddedToSpace)
     self.componentRegistry.SubscribeToItemMessage(itemID,
                                                   'OnRemovedFromSpace',
                                                   self.OnRemovedFromSpace)
     self.componentRegistry.SubscribeToItemMessage(itemID,
                                                   MSG_ON_BALLPARK_RELEASE,
                                                   self.OnBallparkRelease)
     self.SetIntervalInSeconds(self.attributes.cycleTimeSeconds)
コード例 #14
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdated)
     self.lastEndTime = None
     self.spoolUpDurationMillisec = self.attributes.spoolUpDurationMillisec
コード例 #15
0
 def __init__(self, *args):
     Component.__init__(self, *args)
     self.fittingRange = self.attributes.range
コード例 #16
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self._OnAddedToSpace)
     self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED,
                             self._OnSlimItemUpdated)
     self.SubscribeToMessage(MSG_ON_BRACKET_CREATED, self._OnBracketCreated)
コード例 #17
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.warpDisruptionRange = attributes.warpDisruptionRange
     self.SubscribeToMessage(MSG_ON_ACTIVE, self.OnActive)
     self.SubscribeToMessage(MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
     self.addedWarpDisruptor = False
コード例 #18
0
ファイル: billboard.py プロジェクト: connoryang/1v1dec
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.SubscribeToMessage(MSG_ON_LOAD_OBJECT, self.OnLoadObject)
     self.SubscribeToMessage(MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
コード例 #19
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     logger.debug('Adding a behavior to %s of type %s', itemID, typeID)
     self.SubscribeToMessage(messages.MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)
     self.SubscribeToMessage(messages.MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
コード例 #20
0
 def __init__(self, itemTraderItemId, typeId, attributes,
              componentRegistry):
     Component.__init__(self, itemTraderItemId, typeId, attributes,
                        componentRegistry)
     self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace)
コード例 #21
0
 def __init__(self, *args):
     Component.__init__(self, *args)
     self.isReinforced = False
     self.reinforceTimestamp = None
     self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnSlimItemUpdated)
     self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdated)
コード例 #22
0
ファイル: __init__.py プロジェクト: connoryang/1v1dec
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.isPaying = False
     self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace)
     self.SubscribeToMessage('OnRemovedFromSpace', self.OnRemovedFromSpace)
コード例 #23
0
 def __init__(self, *args):
     Component.__init__(self, *args)
     self.fittingRange = self.attributes.range
コード例 #24
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED,
                             self.OnSlimItemUpdated)
     self.lastEndTime = None
     self.spoolUpDurationMillisec = self.attributes.spoolUpDurationMillisec
コード例 #25
0
 def __init__(self, cargoBayItemID, typeID, attributes, componentRegistry):
     Component.__init__(self, cargoBayItemID, typeID, attributes, componentRegistry)
     self.componentRegistry.SubscribeToItemMessage(self.itemID, 'OnRemovedFromSpace', self.OnRemovedFromSpace)
コード例 #26
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.isAlwaysGlobal = attributes.isAlwaysGlobal
コード例 #27
0
 def __init__(self, cargoBayItemID, typeID, attributes, componentRegistry):
     Component.__init__(self, cargoBayItemID, typeID, attributes,
                        componentRegistry)
     self.componentRegistry.SubscribeToItemMessage(self.itemID,
                                                   'OnRemovedFromSpace',
                                                   self.OnRemovedFromSpace)
コード例 #28
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.isAlwaysGlobal = attributes.isAlwaysGlobal
コード例 #29
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)
     self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
     self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_ACTIVE, self.OnActive)
コード例 #30
0
ファイル: decay.py プロジェクト: connoryang/dec-eve-serenity
 def __init__(self, *args):
     Component.__init__(self, *args)
     self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)
     self.SubscribeToMessage(MSG_ON_SLIM_ITEM_UPDATED, self.OnSlimItemUpdate)
     self.decayTimestamp = None
コード例 #31
0
 def __init__(self, itemTraderItemId, typeId, attributes, componentRegistry):
     Component.__init__(self, itemTraderItemId, typeId, attributes, componentRegistry)
     self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace)
コード例 #32
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)
     self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
     self.componentRegistry.SubscribeToItemMessage(itemID, MSG_ON_ACTIVE, self.OnActive)
コード例 #33
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.isPaying = False
     self.SubscribeToMessage('OnAddedToSpace', self.OnAddedToSpace)
     self.SubscribeToMessage('OnRemovedFromSpace', self.OnRemovedFromSpace)
コード例 #34
0
 def __init__(self, *args):
     Component.__init__(self, *args)
     self.isPolarized = False
     self.polarizationEndTime = None
     self.polarizationDuration = None
     self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)
コード例 #35
0
 def __init__(self, *args):
     Component.__init__(self, *args)
     self.isPolarized = False
     self.polarizationEndTime = None
     self.polarizationDuration = None
     self.SubscribeToMessage(MSG_ON_ADDED_TO_SPACE, self.OnAddedToSpace)
コード例 #36
0
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.warpDisruptionRange = attributes.warpDisruptionRange
     self.SubscribeToMessage(MSG_ON_ACTIVE, self.OnActive)
     self.SubscribeToMessage(MSG_ON_REMOVED_FROM_SPACE, self.OnRemovedFromSpace)
     self.addedWarpDisruptor = False
コード例 #37
0
ファイル: npcpilot.py プロジェクト: connoryang/1v1dec
 def __init__(self, itemID, typeID, attributes, componentRegistry):
     Component.__init__(self, itemID, typeID, attributes, componentRegistry)
     self.SubscribeToMessage(messages.MSG_ON_ADDED_TO_SPACE,
                             self.OnAddedToSpace)