kodi
Public Member Functions | List of all members
KODI::GAME::CControllerGrid Class Reference

Class to encapsulate grid operations. More...

#include <ControllerGrid.h>

Public Member Functions

 CControllerGrid (const CControllerGrid &other)=default
 
void SetControllerTree (const CControllerTree &controllerTree)
 Create a grid from a controller tree.
 
unsigned int GetWidth () const
 Get the width of the controller grid.
 
unsigned int GetHeight () const
 Get the height (deepest controller) of the controller grid. More...
 
const ControllerGridGetGrid () const
 Access the controller grid.
 
ControllerVector GetControllers (unsigned int playerIndex) const
 Get the controllers in use by the specified player. More...
 

Detailed Description

Class to encapsulate grid operations.

Member Function Documentation

◆ GetControllers()

ControllerVector CControllerGrid::GetControllers ( unsigned int  playerIndex) const

Get the controllers in use by the specified player.

Parameters
playerIndexThe column in the grid to get controllers from

◆ GetHeight()

unsigned int KODI::GAME::CControllerGrid::GetHeight ( ) const
inline

Get the height (deepest controller) of the controller grid.

The height is cached when the controller grid is created to avoid iterating the grid


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