com.threerings.tudey.space
Interface SpaceObject

All Known Subinterfaces:
SpaceElement
All Known Implementing Classes:
ShapeElement, SimpleSpaceElement

public interface SpaceObject

Superinterface.


Method Summary
 Rect getBounds()
          Returns a reference to the bounds of the object.
 boolean updateLastVisit(int visit)
          Checks and updates the last visit value.
 

Method Detail

getBounds

Rect getBounds()
Returns a reference to the bounds of the object.


updateLastVisit

boolean updateLastVisit(int visit)
Checks and updates the last visit value. This is used to determine when we have visited (e.g., rendered) the object without having to clear a flag for all objects before performing the operation. Instead, we use a unique visitation id for each operation and assume that any object with that id has been visited already.

Returns:
true if the last visit value was not equal to the value provided (and has now been set to that value), false if the object had already been visited during the current operation.


Copyright © 2011. All Rights Reserved.