SuperTuxKart
Public Member Functions | Private Attributes | List of all members
Stars Class Reference

This class is used to display rotating stars around a kart's head. More...

#include <stars.hpp>

Inheritance diagram for Stars:
Inheritance graph
[legend]

Public Member Functions

 Stars (AbstractKart *kart)
 
void showFor (float time)
 
void reset ()
 Resets the stars, esp. More...
 
void update (float delta_t)
 
bool isEnabled () const
 

Private Attributes

std::vector< scene::ISceneNode * > m_nodes
 Vector containing the stars.
 
scene::ISceneNode * m_parent_kart_node
 The scene node of the kart to which the stars belong. More...
 
core::vector3df m_center
 Center around which stars rotate.
 
bool m_enabled
 Whether stars are currently enabled.
 
float m_fade_in_time
 
float m_remaining_time
 

Detailed Description

This class is used to display rotating stars around a kart's head.

Member Function Documentation

◆ reset()

void Stars::reset ( )

Resets the stars, esp.

disabling them at a restart.

Member Data Documentation

◆ m_parent_kart_node

scene::ISceneNode* Stars::m_parent_kart_node
private

The scene node of the kart to which the stars belong.


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