C# 클래스 Swordening.Creature

This is a game component that implements IUpdateable.
상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: ArghyV/Peliohjelmointi-s2011

공개 프로퍼티들

프로퍼티 타입 설명
level int

보호된 프로퍼티들

프로퍼티 타입 설명
_game SwordeningGame
_gameState InGame
attackSpeedFactor double
camera CameraAndLights
effects Effect
graphics GraphicsDeviceManager
movementSpeedFactor float
name string
previousTick TimeSpan
texture Texture2D

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
moveTo ( float possibleX, float possibleZ ) : void

Moves to given position if possible.

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

Moves towards given position.

비공개 메소드들

메소드 설명
isValidPositionToMoveTo ( float x, float z ) : bool

Checks if the given position is possible to move into.

메소드 상세

Creature() 공개 메소드

public Creature ( SwordeningGame game, InGame gameState, Vector3 position ) : System
game SwordeningGame
gameState InGame
position Vector3
리턴 System

Die() 공개 메소드

Kills current creature, removes it from game components and monster list.
public Die ( ) : void
리턴 void

Draw() 공개 메소드

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

Initialize() 공개 메소드

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
리턴 void

moveTo() 보호된 메소드

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

moveTowards() 보호된 메소드

Moves towards given position.
protected moveTowards ( float x, float z, GameTime gameTime ) : void
x float x coordinate
z float z coordinate
gameTime GameTime
리턴 void

프로퍼티 상세

_game 보호되어 있는 프로퍼티

protected SwordeningGame,Swordening _game
리턴 SwordeningGame

_gameState 보호되어 있는 프로퍼티

protected InGame,Swordening _gameState
리턴 InGame

attackSpeedFactor 보호되어 있는 프로퍼티

protected double attackSpeedFactor
리턴 double

camera 보호되어 있는 프로퍼티

protected CameraAndLights,Swordening camera
리턴 CameraAndLights

effects 보호되어 있는 프로퍼티

protected Effect effects
리턴 Effect

graphics 보호되어 있는 프로퍼티

protected GraphicsDeviceManager graphics
리턴 GraphicsDeviceManager

level 공개적으로 프로퍼티

public int level
리턴 int

movementSpeedFactor 보호되어 있는 프로퍼티

protected float movementSpeedFactor
리턴 float

name 보호되어 있는 프로퍼티

protected string name
리턴 string

previousTick 보호되어 있는 프로퍼티

protected TimeSpan previousTick
리턴 TimeSpan

texture 보호되어 있는 프로퍼티

protected Texture2D texture
리턴 Texture2D