C# Class WpfApplication7.Game

Mostra file Open project: NCCUCS-Windows-Programming/SpaceWar Class Usage Examples

Public Properties

Property Type Description
GamePlay bool

Public Methods

Method Description
CreateMainTower ( int posX, int posY, int num ) : void
CreateMap ( ) : void
CreateObstacle ( int posX, int posY, BitmapImage star ) : void
CreatePlayer ( ) : void
CreateTower ( int posX, int posY, float startTime, int num ) : void
Game ( MainWindow window, int PlayerAmount ) : System
Map_Update ( int row, int col ) : void
Start ( ) : void
Update ( object sender, EventArgs e ) : void

Method Details

CreateMainTower() public method

public CreateMainTower ( int posX, int posY, int num ) : void
posX int
posY int
num int
return void

CreateMap() public method

public CreateMap ( ) : void
return void

CreateObstacle() public method

public CreateObstacle ( int posX, int posY, BitmapImage star ) : void
posX int
posY int
star System.Windows.Media.Imaging.BitmapImage
return void

CreatePlayer() public method

public CreatePlayer ( ) : void
return void

CreateTower() public method

public CreateTower ( int posX, int posY, float startTime, int num ) : void
posX int
posY int
startTime float
num int
return void

Game() public method

public Game ( MainWindow window, int PlayerAmount ) : System
window MainWindow
PlayerAmount int
return System

Map_Update() public method

public Map_Update ( int row, int col ) : void
row int
col int
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

GamePlay public_oe property

public bool GamePlay
return bool