C# Class Camfight.Player

Afficher le fichier Open project: tuxoko/camfight

Méthodes publiques

Свойство Type Description
Big_used bool
x int
y int

Protected Properties

Свойство Type Description
player Image[]

Méthodes publiques

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

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

draw() public méthode

public draw ( Graphics g, int state ) : void
g System.Drawing.Graphics
state int
Résultat void

drawHead() public méthode

public drawHead ( Graphics g ) : void
g System.Drawing.Graphics
Résultat void

drawLeft() public méthode

public drawLeft ( Graphics g, int px, int py ) : void
g System.Drawing.Graphics
px int
py int
Résultat void

drawRight() public méthode

public drawRight ( Graphics g, int px, int py ) : void
g System.Drawing.Graphics
px int
py int
Résultat void

getHurt() public méthode

public getHurt ( int damage ) : void
damage int
Résultat void

isHit() public méthode

public isHit ( int sector ) : bool
sector int
Résultat bool

update() public méthode

public update ( int sector ) : void
sector int
Résultat void

Property Details

Big_used public_oe property

public bool Big_used
Résultat bool

player protected_oe property

protected Image[] player
Résultat Image[]

x public_oe property

public int x
Résultat int

y public_oe property

public int y
Résultat int