#include <barrel.h>
Inheritance diagram for PetrolBarrel:
Public Member Functions | |
PetrolBarrel () | |
~PetrolBarrel () | |
void | Draw () |
void | Refresh () |
Protected Member Functions | |
void | SignalGhostState (bool was_already_dead) |
Private Attributes | |
Sprite * | img |
Definition at line 29 of file barrel.h.
PetrolBarrel::PetrolBarrel | ( | ) |
Definition at line 30 of file barrel.cpp.
00030 : PhysicalObj("barrel") 00031 { 00032 Profile *res = resource_manager.LoadXMLProfile( "graphism.xml", false); 00033 img= resource_manager.LoadSprite( res, "objet/barrel"); 00034 resource_manager.UnLoadXMLProfile(res); 00035 00036 life_points = 40; 00037 00038 SetCollisionModel(false, true, true); 00039 SetSize(img->GetSize()); 00040 SetTestRect (1, 1, 2, 2); 00041 }
Here is the call graph for this function:
PetrolBarrel::~PetrolBarrel | ( | ) |
void PetrolBarrel::Draw | ( | ) | [virtual] |
Implements PhysicalObj.
Definition at line 48 of file barrel.cpp.
00049 { 00050 img->Update(); 00051 img->Draw(GetPosition()); 00052 }
Here is the call graph for this function:
void PetrolBarrel::Refresh | ( | ) | [virtual] |
void PetrolBarrel::SignalGhostState | ( | bool | was_already_dead | ) | [protected, virtual] |
Reimplemented from Physics.
Definition at line 58 of file barrel.cpp.
00059 { 00060 ParticleEngine::AddNow(GetCenter() , 20, particle_FIRE, true); 00061 ApplyExplosion(GetCenter(), GameMode::GetInstance()->barrel_explosion_cfg); 00062 }
Here is the call graph for this function:
Sprite* PetrolBarrel::img [private] |