#include <CSWTorpedo.h>
Additional Inherited Members | |
Public Member Functions inherited from CodeSubWars::CSWWeapon | |
virtual bool | arm (double fArmDelay) |
virtual bool | fire (double fFireDelay) |
Public Member Functions inherited from CodeSubWars::CSWObject | |
const std::string & | getName () const |
This class specializes a weapon to an torpedo. This torpedo has a main engine. The power of this engine is depend on the torpedo length. Larger torpedos have an engine with more power. If it is armed and someone collides with it, it will explode. After launching the torpedo explodes automatically after 60 seconds.