C# Class CastleEscape.NPE

Represents a non-player entity. Author: Dennis Honeyman
Afficher le fichier Open project: Daminvar/CastleEscape Class Usage Examples

Méthodes publiques

Méthode Description
DrawBase ( SpriteBatch spriteBatch, ScriptableMap map, int x, int y ) : void
DrawTop ( SpriteBatch spriteBatch, ScriptableMap map, int x, int y ) : void
Interact ( Player player, ScriptableMap map ) : void
NPE ( Microsoft.Xna.Framework.Game game ) : System
SetInteractFunc ( Action func ) : void
SetPosition ( int x, int y ) : void
SetTexture ( string textureName ) : void

Private Methods

Méthode Description
interact ( object player ) : void

Method Details

DrawBase() public méthode

public DrawBase ( SpriteBatch spriteBatch, ScriptableMap map, int x, int y ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
map ScriptableMap
x int
y int
Résultat void

DrawTop() public méthode

public DrawTop ( SpriteBatch spriteBatch, ScriptableMap map, int x, int y ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
map ScriptableMap
x int
y int
Résultat void

Interact() public méthode

public Interact ( Player player, ScriptableMap map ) : void
player Player
map ScriptableMap
Résultat void

NPE() public méthode

public NPE ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Résultat System

SetInteractFunc() public méthode

public SetInteractFunc ( Action func ) : void
func Action
Résultat void

SetPosition() public méthode

public SetPosition ( int x, int y ) : void
x int
y int
Résultat void

SetTexture() public méthode

public SetTexture ( string textureName ) : void
textureName string
Résultat void