Back to index

supertuxkart  0.5+dfsg1
Functions | Variables
projectile_manager.cpp File Reference
#include "loader.hpp"
#include "projectile_manager.hpp"
#include "spark.hpp"
#include "missile.hpp"
#include "homing.hpp"
#include "explosion.hpp"
#include "collectable_manager.hpp"
#include "collectable.hpp"
#include "scene.hpp"

Go to the source code of this file.

Functions

static ssgSelector * find_selector (ssgBranch *b)
 A general function which is only needed here, but it's not really a method, so I'll leave it here.

Variables

ProjectileManagerprojectile_manager = 0

Function Documentation

static ssgSelector * find_selector ( ssgBranch *  b) [static]

A general function which is only needed here, but it's not really a method, so I'll leave it here.

Definition at line 155 of file projectile_manager.cpp.

{
    if ( b == NULL )
        return NULL ;

    if ( ! b -> isAKindOf ( ssgTypeBranch () ) )
        return NULL ;

    if ( b -> isAKindOf ( ssgTypeSelector () ) )
        return (ssgSelector *) b ;

    for ( int i = 0 ; i < b -> getNumKids() ; i++ )
    {
        ssgSelector *res = find_selector ( (ssgBranch *)(b ->getKid(i)) ) ;

        if ( res != NULL )
            return res ;
    }

    return NULL ;
}   // find_selector

Here is the caller graph for this function:


Variable Documentation

Definition at line 32 of file projectile_manager.cpp.