C# Class BodyTetrisWrapper.Program

Afficher le fichier Open project: NBLANCHE/Project

Méthodes publiques

Свойство Type Description
GameID int

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static Countdown ( int timeRemaining ) : void
timeRemaining int
Résultat void

GameStart() public static méthode

public static GameStart ( ) : void
Résultat void

Holding() public static méthode

public static Holding ( int player ) : void
player int
Résultat void

HoldingFail() public static méthode

public static HoldingFail ( int player ) : void
player int
Résultat void

PersonMissing() public static méthode

public static PersonMissing ( ) : void
Résultat void

PlayerStatus() public static méthode

public static PlayerStatus ( float p1z, float p2z, IntPtr players ) : void
p1z float
p2z float
players System.IntPtr
Résultat void

RoundStart() public static méthode

public static RoundStart ( int goalShape, int orientation, IntPtr goalShapeStatus ) : void
goalShape int
orientation int
goalShapeStatus System.IntPtr
Résultat void

SaveJPG() public static méthode

public static SaveJPG ( byte pixels, int w, int h, string Filename ) : int
pixels byte
w int
h int
Filename string
Résultat int

SaveWholePicture() public static méthode

public static SaveWholePicture ( IntPtr ptr ) : int
ptr System.IntPtr
Résultat int

ShapeCompleted() public static méthode

public static ShapeCompleted ( int winner, int scoreP1, int scoreP2 ) : void
winner int
scoreP1 int
scoreP2 int
Résultat void

ShapeStatus() public static méthode

public static ShapeStatus ( int shape1, int shape2 ) : void
shape1 int
shape2 int
Résultat void

SkeletonLog() public static méthode

public static SkeletonLog ( IntPtr ptr ) : int
ptr System.IntPtr
Résultat int

Timeout() public static méthode

public static Timeout ( ) : void
Résultat void

TweetPicture() public static méthode

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
Résultat int

makeBlockImage() public static méthode

public static makeBlockImage ( byte pixels, int w, int h, string Filename ) : void
pixels byte
w int
h int
Filename string
Résultat void

makeFullImage() public static méthode

public static makeFullImage ( byte pixels, int w, int h, string Filename ) : void
pixels byte
w int
h int
Filename string
Résultat void

Property Details

GameID public_oe static_oe property

public static int GameID
Résultat int