SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FeatureUnlockedCutScene::UnlockedThing Struct Reference

Whichever of these is non-null decides what comes out of the chest. More...

Public Member Functions

 UnlockedThing (const std::string &model, const irr::core::stringw &msg)
 
 UnlockedThing (const KartProperties *kart, const irr::core::stringw &msg)
 
 UnlockedThing (irr::video::ITexture *pict, float w, float h, const irr::core::stringw &msg)
 Creates a 'picture' reward.
 
 UnlockedThing (std::vector< irr::video::ITexture * > picts, float w, float h, const irr::core::stringw &msg)
 Creates a 'picture slideshow' reward.
 

Public Attributes

const KartPropertiesm_unlocked_kart
 Will be non-null if this unlocked thing is a kart.
 
std::string m_unlock_model
 
std::vector< irr::video::ITexture * > m_pictures
 Will be non-empty if this unlocked thing is one or many pictures.
 
std::vector< std::shared_ptr< SP::SPTexture > > m_sp_pictures
 
float m_w
 Will be set if this unlocked thing is a picture.
 
float m_h
 
int m_curr_image
 used for slideshows
 
scene::ISceneNode * m_root_gift_node
 Contains whatever is in the chest.
 
scene::ISceneNode * m_side_1
 
scene::ISceneNode * m_side_2
 
float m_scale
 
irr::core::stringw m_unlock_message
 

Detailed Description

Whichever of these is non-null decides what comes out of the chest.

Constructor & Destructor Documentation

◆ UnlockedThing() [1/2]

FeatureUnlockedCutScene::UnlockedThing::UnlockedThing ( irr::video::ITexture *  pict,
float  w,
float  h,
const irr::core::stringw &  msg 
)

Creates a 'picture' reward.

Parameters
pictthe picture to display as reward.
wwidth of the picture to display
yheight of the picture to display

◆ UnlockedThing() [2/2]

FeatureUnlockedCutScene::UnlockedThing::UnlockedThing ( std::vector< irr::video::ITexture * >  picts,
float  w,
float  h,
const irr::core::stringw &  msg 
)

Creates a 'picture slideshow' reward.

Parameters
pictsthe pictures to display as reward.
wwidth of the pictures to display
yheight of the pictures to display

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