Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

ps
Struct CBuildingPlacer

Singleton
   |
   +--CBuildingPlacer

   in Interact.h
   in Interact.cpp

struct CBuildingPlacer
extends Singleton


Field Summary
 CVector3D clickPos
          
 bool m_active
          
 CUnit* m_actor
          
 float m_angle
          
 CBoundingObject* m_bounds
          
 bool m_clicked
          
 bool m_dragged
          
 CEntityTemplate* m_template
          
 CStrW m_templateName
          
 float m_timeSinceClick
          
 float m_totalTime
          
 bool m_valid
          
 
Constructor Summary
CBuildingPlacer()
          
 
Method Summary
 bool Activate( CStrW& templateName )
          
 void CheckValidLocation( CVector3D pos, bool onSocket )
          Check whether the placement location is valid (look at whether we're on the map, who owns the territory, whether we are on a socket, and whether we are colliding with anything).
 void Deactivate()
          
 bool IsWithinLimit( CVector3D pos )
          Checks whether there is space (territorial limit) in the current territory
 void MousePressed()
          
 void MouseReleased()
          
 void Update( float timeStep )
          
   
Methods inherited from class Singleton
GetSingleton, GetSingletonPtr, IsInitialised
 

Field Detail

clickPos

public CVector3D clickPos;

m_active

public bool m_active;

m_actor

public CUnit* m_actor;

m_angle

public float m_angle;

m_bounds

public CBoundingObject* m_bounds;

m_clicked

public bool m_clicked;

m_dragged

public bool m_dragged;

m_template

public CEntityTemplate* m_template;

m_templateName

public CStrW m_templateName;

m_timeSinceClick

public float m_timeSinceClick;

m_totalTime

public float m_totalTime;

m_valid

public bool m_valid;


Constructor Detail

CBuildingPlacer

public CBuildingPlacer();


Method Detail

Activate

public bool Activate( CStrW& templateName );

CheckValidLocation

public void CheckValidLocation( CVector3D pos, bool onSocket );
Check whether the placement location is valid (look at whether we're on the map, who owns the territory, whether we are on a socket, and whether we are colliding with anything).
Parameters:
pos - position under the cursor
onSocket - whether on a socket or not

Deactivate

public void Deactivate();

IsWithinLimit

public bool IsWithinLimit( CVector3D pos );
Checks whether there is space (territorial limit) in the current territory
Parameters:
pos - position under the cursor

MousePressed

public void MousePressed();

MouseReleased

public void MouseReleased();

Update

public void Update( float timeStep );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:14
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD