#include <mine.h>
Inheritance diagram for Mine:
Public Member Functions | |
Mine () | |
MineConfig & | cfg () |
Protected Member Functions | |
WeaponProjectile * | GetProjectileInstance () |
bool | p_Shoot () |
Private Member Functions | |
void | Add (int x, int y) |
Definition at line 82 of file mine.h.
Mine::Mine | ( | ) |
Definition at line 182 of file mine.cpp.
00182 : WeaponLauncher(WEAPON_MINE, "minelauncher", MineConfig::GetInstance(), VISIBLE_ONLY_WHEN_INACTIVE) 00183 { 00184 m_name = _("Mine"); 00185 ReloadLauncher(); 00186 }
Here is the call graph for this function:
void Mine::Add | ( | int | x, | |
int | y | |||
) | [private] |
Definition at line 203 of file mine.cpp.
00204 { 00205 projectile -> SetXY ( Point2i(x, y) ); 00206 projectile -> SetOverlappingObject(&ActiveCharacter()); 00207 00208 Point2d speed_vector; 00209 ActiveCharacter().GetSpeedXY(speed_vector); 00210 projectile -> SetSpeedXY (speed_vector); 00211 lst_objects.AddObject (projectile); 00212 projectile = NULL; 00213 ReloadLauncher(); 00214 }
Here is the call graph for this function:
Here is the caller graph for this function:
MineConfig & Mine::cfg | ( | ) |
Reimplemented from WeaponLauncher.
Definition at line 216 of file mine.cpp.
Here is the caller graph for this function:
WeaponProjectile * Mine::GetProjectileInstance | ( | ) | [protected, virtual] |
Implements WeaponLauncher.
Definition at line 188 of file mine.cpp.
00189 { 00190 return dynamic_cast<WeaponProjectile *> 00191 (new ObjMine(cfg(), dynamic_cast<WeaponLauncher *>(this))); 00192 }
Here is the call graph for this function:
bool Mine::p_Shoot | ( | ) | [protected, virtual] |
Reimplemented from WeaponLauncher.
Definition at line 194 of file mine.cpp.
Here is the call graph for this function: