Back to: Class List
//=====================================
		class Turret
//=====================================
>> The class that represents all Turrets.

----------------------------
Type: Refrence | No Instance
----------------------------

-------------
Group: Common
-------------

-------------
Constructors:
-------------
	N/A

--------
Methods:
--------	
	uint32 id() const;

		Function: Get the Id assigned to the turret when it was
					added to the World
					
		Arguments: N/A
		
		Returns: unsigned int - a positive, none zero number, means
					this turret has been successfully added to the
					world
					
	float interval() const;

		Function: Get the interval at which this turret fires
					
		Arguments: N/A
		
		Returns: float - the turrets interval

		
	void interval( float );

		Function: Set the interval at which this turret fires
					
		Arguments: float - the turrets new interval
		
		Returns: N/A
		
	bool readyToFire() const;

		Function: Query the turret to see if it is ready to fire again
					
		Arguments: N/A
		
		Returns: N/A

	float range() const;

		Function: Get the range of this turret
					
		Arguments: N/A
		
		Returns: float - the turrets range
		
	void range( float );

		Function: Set the range of this turret
					
		Arguments: float - the turrets new range
		
		Returns: N/A
		
	float x() const;

		Function: Get the x coordinate for this turret
					
		Arguments: N/A
		
		Returns: float - the turrets x coordinate
		
	float y() const;

		Function: Get the y coordinate for this turret
					
		Arguments: N/A
		
		Returns: float - the turrets y coordinate
		
	void position( float x, float y );

		Function: Set the x and y coordinates for this turret
					
		Arguments:	float - the new y coordinate
					float - the new x coordinate
		
		Returns: N/A

	void position( const Vector2d );

		Function: Set the position coordinates
					
		Arguments:	Vector2d - the new position
		
		Returns: N/A

	Vector2d position();

		Function: Get the position coordinates
					
		Arguments: N/A
		
		Returns: Vector2d - the object's position

	float description_range() const;

		Function: Get the description value for this turrets range
					
		Arguments: N/A
		
		Returns: float - the original starting range for turrets of this type
		
	float description_interval() const;

		Function: Get the description value for this turrets interval
					
		Arguments: N/A
		
		Returns: float - the original starting interval for turret of this type