C# 클래스 CastleEscape.Player

상속: IOverworldEntity, IBattleCharacter
파일 보기 프로젝트 열기: Daminvar/CastleEscape 1 사용 예제들

공개 메소드들

메소드 설명
AddItem ( Item item ) : void
DrawForBattle ( SpriteBatch spriteBatch, int x, int y ) : void
DrawForOverworld ( SpriteBatch spriteBatch, DrawableMap map, int x, int y ) : void
HealthAfterCombat ( IBattleCharacter enemy ) : int
IsDead ( ) : bool

Checks if the Player is dead

LoadTexture ( Microsoft.Xna.Framework.Game game ) : void
Move ( int x, int y ) : void

Moves the character.

Player ( Microsoft.Xna.Framework.Game game, int xPos, int yPos ) : System

The Player constructor

getAccuracy ( string attackType ) : void

메소드 상세

AddItem() 공개 메소드

public AddItem ( Item item ) : void
item Item
리턴 void

DrawForBattle() 공개 메소드

public DrawForBattle ( SpriteBatch spriteBatch, int x, int y ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
x int
y int
리턴 void

DrawForOverworld() 공개 메소드

public DrawForOverworld ( SpriteBatch spriteBatch, DrawableMap map, int x, int y ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
map DrawableMap
x int
y int
리턴 void

HealthAfterCombat() 공개 메소드

public HealthAfterCombat ( IBattleCharacter enemy ) : int
enemy IBattleCharacter
리턴 int

IsDead() 공개 메소드

Checks if the Player is dead
public IsDead ( ) : bool
리턴 bool

LoadTexture() 공개 메소드

public LoadTexture ( Microsoft.Xna.Framework.Game game ) : void
game Microsoft.Xna.Framework.Game
리턴 void

Move() 공개 메소드

Moves the character.
public Move ( int x, int y ) : void
x int
y int
리턴 void

Player() 공개 메소드

The Player constructor
public Player ( Microsoft.Xna.Framework.Game game, int xPos, int yPos ) : System
game Microsoft.Xna.Framework.Game
xPos int The starting x-position
yPos int The starting y-position
리턴 System

getAccuracy() 공개 메소드

public getAccuracy ( string attackType ) : void
attackType string
리턴 void