xbmc
Public Member Functions | List of all members
KODI::GAME::IAgentList Class Referenceabstract

A list populated by game-playing agents (CGameAgent) More...

#include <IAgentList.h>

Inheritance diagram for KODI::GAME::IAgentList:
Inheritance graph
[legend]

Public Member Functions

virtual void OnWindowLoaded ()=0
 Callback when the GUI window is loaded.
 
virtual void OnWindowUnload ()=0
 Callback when the GUI window is unloaded.
 
virtual bool Initialize (GameClientPtr gameClient)=0
 Initialize resources. More...
 
virtual void Deinitialize ()=0
 Deinitialize resources.
 
virtual bool HasControl (int controlId) const =0
 Query if a control with the given ID belongs to this list.
 
virtual int GetCurrentControl () const =0
 Query the ID of the current control in this list.
 
virtual void FrameMove ()=0
 Called once per frame. More...
 
virtual void Refresh ()=0
 Refresh the contents of the list.
 
virtual void SetFocused ()=0
 The agent list has been focused in the GUI.
 
virtual void OnSelect ()=0
 The agent list has been selected in the GUI.
 

Detailed Description

A list populated by game-playing agents (CGameAgent)

This class manages the behavior of the player list (with control ID 5) in the player dialog (GameAgents window).

The list is populated dynamically by the players in the current game.

Currently, this is identical to the connected joysticks, because Kodi doesn't yet have a player abstraction. This is planned for a later release along with a full-featured Player Manager.

The active ports are determined by IActivePortList.

The list is populated by the CGUIGameControllerProvider.

Member Function Documentation

◆ FrameMove()

virtual void KODI::GAME::IAgentList::FrameMove ( )
pure virtual

Called once per frame.

This allows the list to update its currently focused item.

Implemented in KODI::GAME::CGUIAgentList.

◆ Initialize()

virtual bool KODI::GAME::IAgentList::Initialize ( GameClientPtr  gameClient)
pure virtual

Initialize resources.

Parameters
gameClientThe active game client, an empty pointer if no game client is active
Returns
True if the resource is initialized and can be used, false if the resource failed to initialize and must not be used

Implemented in KODI::GAME::CGUIAgentList.


The documentation for this class was generated from the following file: