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

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

-------------
Group: Client
-------------

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

--------
Methods:
--------
	void addOverlay( Overlay@ overlay );

		Function: Add a graphical overlay to the Turret

		Arguments: Overlay@ - Object Handle to the Overlay to be added

		Returns: N/A

	bool removeOverlay( Overlay@ overlay );

		Function: Remove a graphical overlay
					
		Arguments: Overlay@ - Object Handle to the Overlay to be removed
		
		Returns: bool - true: The overlay was found and removed
				false: The overlay was not found

	int32 numOverlays();

		Function: Get the number of overlays currently attached
					
		Arguments: N/A
		
		Returns: The number of overlays

	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
					
	uint16 level() const;

		Function: Get the current level of the turret

		Arguments: N/A
		
		Returns: unsigned int - a positive number representing the
					level that the turret has been upgraded to.
					Zero means the turret has not been upgraded at
					all.
					
	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