v1.1.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
Classes | Typedefs | Enumerations
Cube

Objects for cube identity and cube sensor state. More...

Classes

struct  Sifteo::CubeID
 A lightweight identifier for one Sifteo cube. More...
 
class  Sifteo::CubeSet
 An unordered set of cubes. More...
 
struct  Sifteo::Neighborhood
 A Neighborhood is a description of all neighbors for a single cube, packed into a small value. More...
 
struct  Sifteo::NeighborID
 A lightweight identifier for one neighbored object. More...
 

Typedefs

typedef _SYSCubeID Sifteo::PCubeID
 Alternate POD type for CubeID storage. More...
 

Enumerations

enum  Sifteo::Side {
  Sifteo::TOP = 0, Sifteo::LEFT, Sifteo::BOTTOM, Sifteo::RIGHT,
  Sifteo::NUM_SIDES, Sifteo::NO_SIDE = -1
}
 An enumeration which names the four sides of a Sifteo cube. More...
 

Detailed Description

Objects for cube identity and cube sensor state.

Typedef Documentation

typedef _SYSCubeID Sifteo::PCubeID

Alternate POD type for CubeID storage.

CubeID is the main Cube data type that games should be using, but it is not a POD type. PCubeID is a POD type that can be used to store cube IDs, and to construct a CubeID when necessary.

Enumeration Type Documentation

An enumeration which names the four sides of a Sifteo cube.

Depending on context, these names can refer to either "physical" sides (relative to the hardware in a cube) or "virtual" sides (relative to the current screen rotation.)

Enumerator
TOP 

Top side (Y-)

LEFT 

Left side (X-)

BOTTOM 

Bottom side (Y+)

RIGHT 

Right side (X+)

NUM_SIDES 

Total number of sides (4)

NO_SIDE 

Nil value (-1)