C# Класс CastleEscape.Player

Наследование: IOverworldEntity, IBattleCharacter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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