C# Class BodyTetrisWrapper.Program

Show file Open project: NBLANCHE/Project

Public Properties

Property Type Description
GameID int

Public Methods

Method Description
Countdown ( int timeRemaining ) : void
GameStart ( ) : void
Holding ( int player ) : void
HoldingFail ( int player ) : void
PersonMissing ( ) : void
PlayerStatus ( float p1z, float p2z, IntPtr players ) : void
RoundStart ( int goalShape, int orientation, IntPtr goalShapeStatus ) : void
SaveJPG ( byte pixels, int w, int h, string Filename ) : int
SaveWholePicture ( IntPtr ptr ) : int
ShapeCompleted ( int winner, int scoreP1, int scoreP2 ) : void
ShapeStatus ( int shape1, int shape2 ) : void
SkeletonLog ( IntPtr ptr ) : int
Timeout ( ) : void
TweetPicture ( int shape, int ori, int w, int h, int squareSize, IntPtr ptr ) : int
makeBlockImage ( byte pixels, int w, int h, string Filename ) : void
makeFullImage ( byte pixels, int w, int h, string Filename ) : void

Private Methods

Method Description
Main ( string args ) : void
SetUpOSCPort ( ) : void
allocGlobal ( int size ) : IntPtr
endGame ( ) : void
numericCommand ( int cmd ) : int
openKinectWindow ( ) : void
setOSCEvents ( IntNPtrPassFunc RoundStart, IntFunc Countdown, IntFunc Holding, IntFunc HoldFail, VoidFunc Timeout, ThreeIntFunc ShapeCompleted, TwoIntFunc ShapeStatus, PlayerStatusFunc PlayerStatus ) : int
setTweetback ( AllocFunc allocGlobal, TweetFunc tweetBack, PtrPassFunc saveFullPicture, PtrPassFunc SkeletonLog ) : int
startGame ( int GameID, int gameLengthS ) : void

Method Details

Countdown() public static method

public static Countdown ( int timeRemaining ) : void
timeRemaining int
return void

GameStart() public static method

public static GameStart ( ) : void
return void

Holding() public static method

public static Holding ( int player ) : void
player int
return void

HoldingFail() public static method

public static HoldingFail ( int player ) : void
player int
return void

PersonMissing() public static method

public static PersonMissing ( ) : void
return void

PlayerStatus() public static method

public static PlayerStatus ( float p1z, float p2z, IntPtr players ) : void
p1z float
p2z float
players System.IntPtr
return void

RoundStart() public static method

public static RoundStart ( int goalShape, int orientation, IntPtr goalShapeStatus ) : void
goalShape int
orientation int
goalShapeStatus System.IntPtr
return void

SaveJPG() public static method

public static SaveJPG ( byte pixels, int w, int h, string Filename ) : int
pixels byte
w int
h int
Filename string
return int

SaveWholePicture() public static method

public static SaveWholePicture ( IntPtr ptr ) : int
ptr System.IntPtr
return int

ShapeCompleted() public static method

public static ShapeCompleted ( int winner, int scoreP1, int scoreP2 ) : void
winner int
scoreP1 int
scoreP2 int
return void

ShapeStatus() public static method

public static ShapeStatus ( int shape1, int shape2 ) : void
shape1 int
shape2 int
return void

SkeletonLog() public static method

public static SkeletonLog ( IntPtr ptr ) : int
ptr System.IntPtr
return int

Timeout() public static method

public static Timeout ( ) : void
return void

TweetPicture() public static method

public static TweetPicture ( int shape, int ori, int w, int h, int squareSize, IntPtr ptr ) : int
shape int
ori int
w int
h int
squareSize int
ptr System.IntPtr
return int

makeBlockImage() public static method

public static makeBlockImage ( byte pixels, int w, int h, string Filename ) : void
pixels byte
w int
h int
Filename string
return void

makeFullImage() public static method

public static makeFullImage ( byte pixels, int w, int h, string Filename ) : void
pixels byte
w int
h int
Filename string
return void

Property Details

GameID public static property

public static int GameID
return int