CodeSubWars 0.4.7b
CodeSubWars::CSWTorpedo Class Reference

#include <CSWTorpedo.h>

Inheritance diagram for CodeSubWars::CSWTorpedo:

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
 

Detailed Description

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.


Generated at Sun Aug 7 2022 for project CodeSubWars. www.codesubwars.org