Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
Tactics3D::IWeapon Class Referenceabstract

#include <Tactics3DInventory.h>

Inheritance diagram for Tactics3D::IWeapon:
Tactics3D::IEquipable Tactics3D::ICollectible Tactics3D::MegaRL

Public Member Functions

 IWeapon (OpenSkyNet::Core::Object *owner_, int damage_, float minSpread_, float maxSpread_, float spreadPerShot_)
 
virtual ~IWeapon ()
 
const AttackRangegetAttackRange () const
 
AttackRangegetAttackRange ()
 
virtual void calcSpread ()=0
 
virtual void getAim (OpenSkyNet::Math::Point<> &origin_, OpenSkyNet::Math::Point<> &dir_) const
 
virtual bool fire (OpenSkyNet::CD::HitInfo &hitInfo_, OpenSkyNet::Core::Object *intendedTarget_, Action *action_)=0
 
Weapon accessors
int getDamage () const
 
float getSpread () const
 
float getMinSpread () const
 
float getMaxSpread () const
 
float getSpreadPerShot () const
 
- Public Member Functions inherited from Tactics3D::IEquipable
 IEquipable (OpenSkyNet::Core::Object *owner_)
 
- Public Member Functions inherited from Tactics3D::ICollectible
 ICollectible (OpenSkyNet::Core::Object *owner_)
 
virtual void setVisible (bool isVisible_)
 
virtual ~ICollectible ()
 

Protected Attributes

int _damage
 
float _spread
 
float _minSpread
 
float _maxSpread
 
float _spreadPerShot
 
AttackRange_attackRange
 
- Protected Attributes inherited from Tactics3D::ICollectible
OpenSkyNet::Core::Object_owner
 

Constructor & Destructor Documentation

Tactics3D::IWeapon::IWeapon ( OpenSkyNet::Core::Object owner_,
int  damage_,
float  minSpread_,
float  maxSpread_,
float  spreadPerShot_ 
)
inline
IWeapon::~IWeapon ( )
virtual

Member Function Documentation

virtual void Tactics3D::IWeapon::calcSpread ( )
pure virtual

Implemented in Tactics3D::MegaRL.

bool IWeapon::fire ( OpenSkyNet::CD::HitInfo hitInfo_,
OpenSkyNet::Core::Object intendedTarget_,
Action action_ 
)
pure virtual

Implemented in Tactics3D::MegaRL.

void IWeapon::getAim ( OpenSkyNet::Math::Point<> &  origin_,
OpenSkyNet::Math::Point<> &  dir_ 
) const
virtual
const AttackRange* Tactics3D::IWeapon::getAttackRange ( ) const
inline
AttackRange* Tactics3D::IWeapon::getAttackRange ( )
inline
int Tactics3D::IWeapon::getDamage ( ) const
inline
float Tactics3D::IWeapon::getMaxSpread ( ) const
inline
float Tactics3D::IWeapon::getMinSpread ( ) const
inline
float Tactics3D::IWeapon::getSpread ( ) const
inline
float Tactics3D::IWeapon::getSpreadPerShot ( ) const
inline

Member Data Documentation

AttackRange* Tactics3D::IWeapon::_attackRange
protected
int Tactics3D::IWeapon::_damage
protected
float Tactics3D::IWeapon::_maxSpread
protected
float Tactics3D::IWeapon::_minSpread
protected
float Tactics3D::IWeapon::_spread
protected
float Tactics3D::IWeapon::_spreadPerShot
protected

The documentation for this class was generated from the following files: