Package horizons :: Package util :: Module inventorychecker :: Class InventoryChecker
[hide private]
[frames] | no frames]

Class InventoryChecker

source code

Instance Methods [hide private]
 
__init__(self, message_class, storage_component, check_interval)
Message class is a subclass of message that this checker will broadcast when the storage_component given has change in its inventory.
source code
 
check_inventory_changed(self)
Function that checks whether the settlements inventory has changed from the last time checked
source code
 
remove(self)
Clean up
source code
Method Details [hide private]

__init__(self, message_class, storage_component, check_interval)
(Constructor)

source code 

Message class is a subclass of message that this checker will broadcast when the storage_component given has change in its inventory. This check is done every check_interval ticks.