C# Class CastleEscape.NPE

Represents a non-player entity. Author: Dennis Honeyman
Show file Open project: Daminvar/CastleEscape Class Usage Examples

Public Methods

Method 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

Method Description
interact ( object player ) : void

Method Details

DrawBase() public method

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

DrawTop() public method

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

Interact() public method

public Interact ( Player player, ScriptableMap map ) : void
player Player
map ScriptableMap
return void

NPE() public method

public NPE ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

SetInteractFunc() public method

public SetInteractFunc ( Action func ) : void
func Action
return void

SetPosition() public method

public SetPosition ( int x, int y ) : void
x int
y int
return void

SetTexture() public method

public SetTexture ( string textureName ) : void
textureName string
return void