Example #1
0
File: eos.py Project: NiGhTTraX/Eos
 def __initializeLogger(self):
     """
     Initialize logging facilities, log few initial messages,
     and return logger.
     """
     logger = Logger(self.name, os.path.join(self.__path, "logs"))
     logger.info("------------------------------------------------------------------------")
     logger.info("session started")
     return logger
Example #2
0
File: eos.py Project: bastianh/Eos
 def __initializeLogger(self):
     """
     Initialize logging facilities, log few initial messages,
     and return logger.
     """
     logger = Logger(self.name, os.path.join(self.__path, 'logs'))
     logger.info('------------------------------------------------------------------------')
     logger.info('session started')
     return logger
Example #3
0
File: eos.py Project: oneillkza/Eos
class Eos:
    def __init__(self, name="eos"):
        self._cacheHandler = JsonCacheHandler
        self._logger = Logger(name)
        self._logger.info("session started")

    def makeFit(self):
        fit = Fit(self)
        return fit

    def makeCharacter(self):
        characterType = self._cacheHandler.getType(Type.characterStatic)
        character = Character(characterType)
        return character

    def makeShip(self, typeId):
        shipType = self._cacheHandler.getType(typeId)
        ship = Ship(shipType)
        return ship

    def makeModule(self, typeId):
        moduleType = self._cacheHandler.getType(typeId)
        module = Module(moduleType)
        return module

    def makeCharge(self, typeId):
        chargeType = self._cacheHandler.getType(typeId)
        charge = Charge(chargeType)
        return charge

    def makeDrone(self, typeId):
        droneType = self._cacheHandler.getType(typeId)
        drone = Drone(droneType)
        return drone

    def makeImplant(self, typeId):
        implantType = self._cacheHandler.getType(typeId)
        implant = Implant(implantType)
        return implant

    def makeSkill(self, typeId):
        skillType = self._cacheHandler.getType(typeId)
        skill = Skill(skillType)
        return skill

    def makeRig(self, typeId):
        rigType = self._cacheHandler.getType(typeId)
        rig = Rig(rigType)
        return rig

    def makeBooster(self, typeId):
        boosterType = self._cacheHandler.getType(typeId)
        booster = Booster(boosterType)
        return booster
Example #4
0
File: eos.py Project: NiGhTTraX/Eos
 def __initializeLogger(self):
     """
     Initialize logging facilities, log few initial messages,
     and return logger.
     """
     logger = Logger(self.name, os.path.join(self.__path, 'logs'))
     logger.info(
         '------------------------------------------------------------------------'
     )
     logger.info('session started')
     return logger
Example #5
0
File: eos.py Project: oneillkza/Eos
 def __init__(self, name="eos"):
     self._cacheHandler = JsonCacheHandler
     self._logger = Logger(name)
     self._logger.info("session started")