C# Class Camfight.Player

Show file Open project: tuxoko/camfight

Public Properties

Property Type Description
Big_used bool
x int
y int

Protected Properties

Property Type Description
player Image[]

Public Methods

Method Description
Player ( string type, Image img, Image img_lh, Image img_rh, Image img_left, Image img_left_lh, Image img_left_rh, Image img_right, Image img_right_lh, Image img_right_rh, Image im_idle_1, Image im_idle_2, Image im_idle_3 ) : System
draw ( Graphics g, int state ) : void
drawHead ( Graphics g ) : void
drawLeft ( Graphics g, int px, int py ) : void
drawRight ( Graphics g, int px, int py ) : void
getHurt ( int damage ) : void
isHit ( int sector ) : bool
update ( int sector ) : void

Method Details

Player() public method

public Player ( string type, Image img, Image img_lh, Image img_rh, Image img_left, Image img_left_lh, Image img_left_rh, Image img_right, Image img_right_lh, Image img_right_rh, Image im_idle_1, Image im_idle_2, Image im_idle_3 ) : System
type string
img Image
img_lh Image
img_rh Image
img_left Image
img_left_lh Image
img_left_rh Image
img_right Image
img_right_lh Image
img_right_rh Image
im_idle_1 Image
im_idle_2 Image
im_idle_3 Image
return System

draw() public method

public draw ( Graphics g, int state ) : void
g System.Drawing.Graphics
state int
return void

drawHead() public method

public drawHead ( Graphics g ) : void
g System.Drawing.Graphics
return void

drawLeft() public method

public drawLeft ( Graphics g, int px, int py ) : void
g System.Drawing.Graphics
px int
py int
return void

drawRight() public method

public drawRight ( Graphics g, int px, int py ) : void
g System.Drawing.Graphics
px int
py int
return void

getHurt() public method

public getHurt ( int damage ) : void
damage int
return void

isHit() public method

public isHit ( int sector ) : bool
sector int
return bool

update() public method

public update ( int sector ) : void
sector int
return void

Property Details

Big_used public property

public bool Big_used
return bool

player protected property

protected Image[] player
return Image[]

x public property

public int x
return int

y public property

public int y
return int