Table of Contents
empyreal.engine.core
  Controller class
  Main interface

empyreal.engine.core

Controller class

class empyreal.engine.core.GameController(user_id=None, session=None, server=None)

The Game controller contains helper methods for the subclasses.

All the methods which require a Prophet or Religion raise a UserNotIncarnatedException in case called for a user who has not yet incarnated.

Main interface

GameController.get_user()

Returns the current logged in user or None in case no user has logged in with the client yet.

GameController.get_tick()

Returns the current game tick.

GameController.get_year()

Returns the current game year.

GameController.get_character()

Returns the current Prophet of the logged in user.

GameController.get_religion()

Returns the religion of the logged in user.

GameController.has_action_points(points)

Returns a boolean whether or not the user has more or equal action points than the provided points argument.

GameController.has_faith(faith)

Returns a boolean whether or not the user has more or equal faith than the provided faith argument.

GameController.has_currency(currency)

Returns a boolean whether or not the user has more or equal currency than the provided currency argument.

GameController.is_busy()

Returns a boolean whether or not the Prophet of the user is busy. The Prophet is considered busy if the busy_until_tick of the character is larger than the result of get_tick().

GameController.busy_until()

Returns the busy_until_tick of the users Prophet. Returns False in case the Prophet is not busy.

GameController.get_statistics()

Returns a dictionary with current game statistics.

GameController.get_changelog(version=None)

Returns a list of empyreal.lib.models.ChangeLog objects. These objects contain information on the changes for the different versions of the Empyreal Server. For example output check the Server Patch Notes wiki.