ps
Struct CBuildingPlacer
Singleton
|
+--CBuildingPlacer
in Interact.h
in Interact.cpp
- struct CBuildingPlacer
- extends Singleton
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;
CBuildingPlacer
public CBuildingPlacer();
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 );