Class MarioAIBase

java.lang.Object
ch.idsia.agents.controllers.MarioAgentBase
ch.idsia.agents.controllers.MarioAIBase
All Implemented Interfaces:
IAgent
Direct Known Subclasses:
MarioHijackAIBase

public abstract class MarioAIBase
extends MarioAgentBase
Abstract class that serves as a basis for implementing new Mario-AI agents.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected MarioInput action
    Actions that an IAgent wants to perform.
    protected MarioControl control
    A layer over action that provides a programming-friendly abstraction of Mario actions.
    protected Entities e
    Information about entities in Mario's vicinity.
    protected MarioEntity mario
    Information about Mario's body.
    protected Tiles t
    Information about tiles in Mario's vicinity.

    Fields inherited from class ch.idsia.agents.controllers.MarioAgentBase

    name
  • Constructor Summary

    Constructors 
    Constructor Description
    MarioAIBase()  
    MarioAIBase​(java.lang.String agentName)  
  • Method Summary

    Modifier and Type Method Description
    MarioInput actionSelection()
    Agent should now perform an action-selection and return actions it wants to perform.
    void observe​(IEnvironment environment)
    Agent is given new percepts to process and save for the next IAgent.actionSelection().
    void receiveReward​(float intermediateReward)
    Agent is informed about 'intermediateReward' it accumulated so-far.
    void reset​(AgentOptions options)
    Called before the agent is executed for the first time or in-between respective tasks/scenarios.

    Methods inherited from class ch.idsia.agents.controllers.MarioAgentBase

    getName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait