C# 클래스 MyGame.PlayerUnit

This class represent player unit which moves in a speficied direction, rotates , take damange and die when hp reaches zero
상속: Unit
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
health int

공개 메소드들

메소드 설명
PlayerUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale ) : System
decreaseHealth ( int decreasedHealth ) : void
update ( GameTime gameTime ) : void

Allows the unit to update itself.

메소드 상세

PlayerUnit() 공개 메소드

public PlayerUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale ) : System
game MyGame
Position Vector3
Rotation Vector3
Scale Vector3
리턴 System

decreaseHealth() 공개 메소드

public decreaseHealth ( int decreasedHealth ) : void
decreasedHealth int
리턴 void

update() 공개 메소드

Allows the unit to update itself.
public update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void

프로퍼티 상세

health 공개적으로 프로퍼티

public int health
리턴 int