def register_actions(cls):
    """ Registers all marked methods in the agent class

    :param cls: Agent Subclass of Agent containing methods decorated with @action
    """
    for name, method in cls.__dict__.items():
        if hasattr(method, '_register_action'):
            cls._actions[name] = method
    return cls
