C# 클래스 XPlane.Core.Entities.Player

상속: Sharpex2D.Entities.Entity, IDynamicHitbox
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

공개 메소드들

메소드 설명
Damage ( int value ) : void

Damages the player.

Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void

Draws the Player.

IntersectsWith ( IDynamicHitbox dynamicHitbox ) : bool

A value indicating whether the hitbox intersects with another.

Player ( Texture2D playerTexture ) : Sharpex2D

Initializes a new Player class.

Update ( GameTime gameTime ) : void

Updates the Player.

메소드 상세

Damage() 공개 메소드

Damages the player.
public Damage ( int value ) : void
value int The Value.
리턴 void

Draw() 공개 메소드

Draws the Player.
public Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void
spriteBatch Sharpex2D.Rendering.SpriteBatch The spriteBatch.
gameTime Sharpex2D.GameTime The GameTime.
리턴 void

IntersectsWith() 공개 메소드

A value indicating whether the hitbox intersects with another.
public IntersectsWith ( IDynamicHitbox dynamicHitbox ) : bool
dynamicHitbox IDynamicHitbox The other DynamicHitbox.
리턴 bool

Player() 공개 메소드

Initializes a new Player class.
public Player ( Texture2D playerTexture ) : Sharpex2D
playerTexture Sharpex2D.Rendering.Texture2D The PlayerTexture.
리턴 Sharpex2D

Update() 공개 메소드

Updates the Player.
public Update ( GameTime gameTime ) : void
gameTime Sharpex2D.GameTime The GameTime.
리턴 void