SC2API
An API for AI for StarCraft II
Public Member Functions | List of all members
sc2::ObserverActionInterface Class Referenceabstract

The ObserverActionInterface corresponds to the actions available in the observer UI. More...

#include <sc2_interfaces.h>

Public Member Functions

virtual void CameraMove (const Point2D &point, float distance=0.0f)=0
 
virtual void CameraFollowPlayer ()=0
 Makes the observer camera follow the observed player's perspective.
 
virtual void SendActions ()=0
 

Detailed Description

The ObserverActionInterface corresponds to the actions available in the observer UI.

Member Function Documentation

virtual void sc2::ObserverActionInterface::CameraMove ( const Point2D point,
float  distance = 0.0f 
)
pure virtual

Moves the observer camera to a target location. Will cause the camera to stop following the observed player's perspective.

Parameters
pointThe 2D world position to target.
distanceDistance between camera and terrain. Larger value zooms out camera. Defaults to standard camera distance if set to 0.
virtual void sc2::ObserverActionInterface::SendActions ( )
pure virtual

This function sends out all batched commands. You DO NOT need to call this function. it is automatically called when stepping the simulation forward.


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