#include <SfLps.h>
Inheritance diagram for SfArtifact::
Public Types | |
enum | Type { Robot, Point, Wall, Wallset, Corridor, Goal } |
Public Methods | |
void | draw (SfWin *w) |
This function is overridden by the artifact subclass to draw a particular artifact. | |
SfArtifact () | |
Constructor, adds the artifact object to the artifact list. | |
virtual | ~SfArtifact () |
Destructor, removes the artifact from the artifact list. | |
Public Attributes | |
ArPose | p |
Current pose of the object. |
The SfArtifact class is the standard way to draw objects on the LPS graphcis window. Inheriting from this class lets a subclass define the draw(SfWin *) function, which is called every time the graphics window is refreshed. The SfArtifact class adds its objects to the artifact list, and removes them on destruction. To turn off drawing of an artifact, use the visible flag (inherited from the SfDrawable class).
|
|