C# Class WpfApplication7.Player

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

Public Properties

Property Type Description
MaxBNumber int
MaxPower int
MaxSpeed float
Position_Player0_X float
Position_Player0_Y float
Position_Player1_X float
Position_Player1_Y float
_BNumber int
_Can_BNumber int
_DeathCounts int
_DeathTime float
_DeltaSpeed float
_IsLife bool
_PlayerView string
_PositionX float
_PositionY float
_Power int
_Speed float
number int

Public Methods

Method Description
GetNext_map ( int x, int y ) : int[]
Hit ( ) : void
IsHitWall ( string GoToWhere, float CalSpeed ) : bool
Player ( MainWindow window, int player_num ) : System
Relive ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

GetNext_map() public method

public GetNext_map ( int x, int y ) : int[]
x int
y int
return int[]

Hit() public method

public Hit ( ) : void
return void

IsHitWall() public method

public IsHitWall ( string GoToWhere, float CalSpeed ) : bool
GoToWhere string
CalSpeed float
return bool

Player() public method

public Player ( MainWindow window, int player_num ) : System
window MainWindow
player_num int
return System

Relive() public method

public Relive ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

MaxBNumber public property

public int MaxBNumber
return int

MaxPower public property

public int MaxPower
return int

MaxSpeed public property

public float MaxSpeed
return float

Position_Player0_X public property

public float Position_Player0_X
return float

Position_Player0_Y public property

public float Position_Player0_Y
return float

Position_Player1_X public property

public float Position_Player1_X
return float

Position_Player1_Y public property

public float Position_Player1_Y
return float

_BNumber public property

public int _BNumber
return int

_Can_BNumber public property

public int _Can_BNumber
return int

_DeathCounts public property

public int _DeathCounts
return int

_DeathTime public property

public float _DeathTime
return float

_DeltaSpeed public property

public float _DeltaSpeed
return float

_IsLife public property

public bool _IsLife
return bool

_PlayerView public property

public string _PlayerView
return string

_PositionX public property

public float _PositionX
return float

_PositionY public property

public float _PositionY
return float

_Power public property

public int _Power
return int

_Speed public property

public float _Speed
return float

number public property

public int number
return int