C# Class Platformer.Tiles.Activator

Show file Open project: zmthy/play-dead

Protected Properties

Property Type Description
activated Microsoft.Xna.Framework.Graphics.Texture2D
deactivated Microsoft.Xna.Framework.Graphics.Texture2D
on System.Boolean
origin Vector2
position Vector2

Public Methods

Method Description
Activator ( Vector2 location ) : System
ChangeState ( Player c, KeyboardState keyState, InputManager inputManager ) : void
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
add ( IActivatable responder ) : void
remove ( IActivatable responder ) : void

Method Details

Activator() public method

public Activator ( Vector2 location ) : System
location Vector2
return System

ChangeState() public abstract method

public abstract ChangeState ( Player c, KeyboardState keyState, InputManager inputManager ) : void
c Platformer.Player
keyState Microsoft.Xna.Framework.Input.KeyboardState
inputManager Platformer.InputManager
return void

Draw() public method

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

add() public method

public add ( IActivatable responder ) : void
responder IActivatable
return void

remove() public method

public remove ( IActivatable responder ) : void
responder IActivatable
return void

Property Details

activated protected property

protected Texture2D,Microsoft.Xna.Framework.Graphics activated
return Microsoft.Xna.Framework.Graphics.Texture2D

deactivated protected property

protected Texture2D,Microsoft.Xna.Framework.Graphics deactivated
return Microsoft.Xna.Framework.Graphics.Texture2D

on protected property

protected Boolean,System on
return System.Boolean

origin protected property

protected Vector2 origin
return Vector2

position protected property

protected Vector2 position
return Vector2