Skip to content

Class i_2D::Inventory

ClassList > i_2D > Inventory

Public Functions

Type Name
void ConstructInventory (sf::Font & font, const std::vector< std::string > & interfaceAgentInventory)
Build an inventory window and an inventory list.
void DrawTo (sf::RenderWindow & window)
Draws the inventory onto the render window.
std::string HandleMouseMove (sf::RenderWindow & window)
Handle the mouse move event.
Inventory (const sf::Vector2f size)
Constructor - save the value of the world's dimension.
void SetItemDisplay (sf::Texture & texture)
Set the Displayed item's texture.
void SetSize (const sf::Vector2f size)
Set the value saved as the world's dimension.

Public Functions Documentation

function ConstructInventory

Build an inventory window and an inventory list.

void i_2D::Inventory::ConstructInventory (
    sf::Font & font,
    const std::vector< std::string > & interfaceAgentInventory
) 

Parameters:

  • font The font used by the inventory list

function DrawTo

Draws the inventory onto the render window.

void i_2D::Inventory::DrawTo (
    sf::RenderWindow & window
) 

Parameters:

  • window The render window of the world

function HandleMouseMove

Handle the mouse move event.

std::string i_2D::Inventory::HandleMouseMove (
    sf::RenderWindow & window
) 

Parameters:

  • window The render window of the world

function Inventory

inline explicit i_2D::Inventory::Inventory (
    const sf::Vector2f size
) 

function SetItemDisplay

inline void i_2D::Inventory::SetItemDisplay (
    sf::Texture & texture
) 

function SetSize

inline void i_2D::Inventory::SetSize (
    const sf::Vector2f size
) 

The documentation for this class was generated from the following file source/Interfaces/Inventory.hpp