11 #include "IAgentControllerList.h" 12 #include "addons/AddonEvents.h" 13 #include "games/GameTypes.h" 14 #include "games/controllers/ControllerTypes.h" 15 #include "utils/Observer.h" 31 class CAgentController;
64 void OnItemFocus(
unsigned int itemIndex);
65 void OnControllerFocus(
const std::string& focusedAgent);
66 void OnItemSelect(
unsigned int itemIndex);
67 void OnControllerSelect(
const CFileItem& selectedAgentItem);
74 std::unique_ptr<CGUIViewControl> m_viewControl;
75 std::unique_ptr<CFileItemList> m_vecItems;
76 unsigned int m_currentItem{0};
77 std::string m_currentAgent;
Definition: GUIViewControl.h:19
Definition: GUIAgentControllerList.h:36
A list populated by the controllers of game-playing agents (CGameAgent)
Definition: IAgentControllerList.h:29
void Deinitialize() override
Deinitialize resources.
Definition: GUIAgentControllerList.cpp:90
void Notify(const Observable &obs, const ObservableMessage msg) override
Process a message from an observable.
Definition: GUIAgentControllerList.cpp:182
Represents a list of files.
Definition: FileItem.h:702
void OnWindowLoaded() override
Callback when the GUI window is loaded.
Definition: GUIAgentControllerList.cpp:54
Class to represent the controller of a game player (a.k.a. agent)
Definition: AgentController.h:33
void OnSelect() override
The agent list has been selected in the GUI.
Definition: GUIAgentControllerList.cpp:175
void FrameMove() override
Called once per frame.
Definition: GUIAgentControllerList.cpp:116
Definition: AudioDecoder.h:18
Definition: Observer.h:31
std::shared_ptr< CGameClient > GameClientPtr
Smart pointer to a game client (CGameClient)
Definition: GameTypes.h:29
Definition: AddonEvents.h:18
void OnWindowUnload() override
Callback when the GUI window is unloaded.
Definition: GUIAgentControllerList.cpp:61
bool Initialize(GameClientPtr gameClient) override
Initialize resources.
Definition: GUIAgentControllerList.cpp:66
void SetFocused() override
The agent list has been focused in the GUI.
Definition: GUIAgentControllerList.cpp:170
int GetCurrentControl() const override
Query the ID of the current control in this list.
Definition: GUIAgentControllerList.cpp:111
bool HasControl(int controlId) const override
Query if a control with the given ID belongs to this list.
Definition: GUIAgentControllerList.cpp:106
Definition: GUIWindow.h:58
Definition: Observer.h:44
void Refresh() override
Refresh the contents of the list.
Definition: GUIAgentControllerList.cpp:132
Represents a file on a share.
Definition: FileItem.h:102