C# Class Swordening.Creature

This is a game component that implements IUpdateable.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: ArghyV/Peliohjelmointi-s2011

Méthodes publiques

Свойство Type Description
level int

Protected Properties

Свойство Type Description
_game SwordeningGame
_gameState InGame
attackSpeedFactor double
camera CameraAndLights
effects Effect
graphics GraphicsDeviceManager
movementSpeedFactor float
name string
previousTick TimeSpan
texture Texture2D

Méthodes publiques

Méthode Description
Creature ( SwordeningGame game, InGame gameState, Vector3 position ) : System
Die ( ) : void

Kills current creature, removes it from game components and monster list.

Draw ( GameTime gameTime ) : void
Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

Méthodes protégées

Méthode Description
moveTo ( float possibleX, float possibleZ ) : void

Moves to given position if possible.

moveTowards ( float x, float z, GameTime gameTime ) : void

Moves towards given position.

Private Methods

Méthode Description
isValidPositionToMoveTo ( float x, float z ) : bool

Checks if the given position is possible to move into.

Method Details

Creature() public méthode

public Creature ( SwordeningGame game, InGame gameState, Vector3 position ) : System
game SwordeningGame
gameState InGame
position Vector3
Résultat System

Die() public méthode

Kills current creature, removes it from game components and monster list.
public Die ( ) : void
Résultat void

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Initialize() public méthode

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
Résultat void

moveTo() protected méthode

Moves to given position if possible.
protected moveTo ( float possibleX, float possibleZ ) : void
possibleX float x coordinate
possibleZ float z coordinate
Résultat void

moveTowards() protected méthode

Moves towards given position.
protected moveTowards ( float x, float z, GameTime gameTime ) : void
x float x coordinate
z float z coordinate
gameTime GameTime
Résultat void

Property Details

_game protected_oe property

protected SwordeningGame,Swordening _game
Résultat SwordeningGame

_gameState protected_oe property

protected InGame,Swordening _gameState
Résultat InGame

attackSpeedFactor protected_oe property

protected double attackSpeedFactor
Résultat double

camera protected_oe property

protected CameraAndLights,Swordening camera
Résultat CameraAndLights

effects protected_oe property

protected Effect effects
Résultat Effect

graphics protected_oe property

protected GraphicsDeviceManager graphics
Résultat GraphicsDeviceManager

level public_oe property

public int level
Résultat int

movementSpeedFactor protected_oe property

protected float movementSpeedFactor
Résultat float

name protected_oe property

protected string name
Résultat string

previousTick protected_oe property

protected TimeSpan previousTick
Résultat TimeSpan

texture protected_oe property

protected Texture2D texture
Résultat Texture2D