CodeSubWars 0.4.7b
CodeSubWars::CSWHomingTorpedo Class Reference

#include <CSWHomingTorpedo.h>

Inheritance diagram for CodeSubWars::CSWHomingTorpedo:

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 torpedo to an homing torpedo. This torpedo has an active sonar. Ones the torpedo has been released it checks in front whether a dynamic object exists. If so it modifies its main engine direction a little bit to move to the detected object.


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