C# Class SmartboyDevelopments.Haxxit.MonoGame.GameStates.MapDisplayGameState

Inheritance: HaxxitGameState
Mostra file Open project: smartboyathome/Haxxit Class Usage Examples

Public Methods

Method Description
Draw ( SpriteBatch sprite_batch ) : void
HaxxitPointToXnaRectangle ( SmartboyDevelopments.Haxxit p ) : Rectangle
Init ( ) : void
LoadContent ( GraphicsDevice newGraphics, SpriteBatch sprite_batch, Microsoft.Xna.Framework.Content.ContentManager newContent ) : void
MapDisplayGameState ( SmartboyDevelopments.Haxxit map ) : System
NewMediator ( SimplePubSub mediator ) : void
SubscribeAll ( ) : void
Update ( ) : void
XnaPointToHaxxitPoint ( Point p ) : SmartboyDevelopments.Haxxit.Maps.Point
XnaVector2ToHaxxitPoint ( Vector2 v ) : SmartboyDevelopments.Haxxit.Maps.Point

Private Methods

Method Description
DrawAvailableNode ( SmartboyDevelopments.Haxxit p ) : IEnumerable
DrawDataNode ( SmartboyDevelopments.Haxxit p ) : IEnumerable
DrawProgramHeadNode ( SmartboyDevelopments.Haxxit p, SmartboyDevelopments.Haxxit player, SmartboyDevelopments.Haxxit program ) : IEnumerable
DrawProgramNodeConnector ( SmartboyDevelopments.Haxxit p, SmartboyDevelopments.Haxxit connector_direction, Color node_color ) : IEnumerable
DrawProgramTailNode ( SmartboyDevelopments.Haxxit p, SmartboyDevelopments.Haxxit connector_direction, SmartboyDevelopments.Haxxit player, SmartboyDevelopments.Haxxit program ) : IEnumerable
DrawSilicoinNode ( SmartboyDevelopments.Haxxit p ) : IEnumerable
DrawSpawnNode ( SmartboyDevelopments.Haxxit p, SmartboyDevelopments.Haxxit player, SmartboyDevelopments.Haxxit program = null ) : IEnumerable
MapChangedListener ( SimplePubSub notifiable, string channel, object sender, EventArgs args ) : void
MapNodeToRectangle ( SmartboyDevelopments.Haxxit p ) : IEnumerable

Method Details

Draw() public method

public Draw ( SpriteBatch sprite_batch ) : void
sprite_batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

HaxxitPointToXnaRectangle() public method

public HaxxitPointToXnaRectangle ( SmartboyDevelopments.Haxxit p ) : Rectangle
p SmartboyDevelopments.Haxxit
return Microsoft.Xna.Framework.Rectangle

Init() public method

public Init ( ) : void
return void

LoadContent() public method

public LoadContent ( GraphicsDevice newGraphics, SpriteBatch sprite_batch, Microsoft.Xna.Framework.Content.ContentManager newContent ) : void
newGraphics GraphicsDevice
sprite_batch Microsoft.Xna.Framework.Graphics.SpriteBatch
newContent Microsoft.Xna.Framework.Content.ContentManager
return void

MapDisplayGameState() public method

public MapDisplayGameState ( SmartboyDevelopments.Haxxit map ) : System
map SmartboyDevelopments.Haxxit
return System

NewMediator() public method

public NewMediator ( SimplePubSub mediator ) : void
mediator SimplePubSub
return void

SubscribeAll() public method

public SubscribeAll ( ) : void
return void

Update() public method

public Update ( ) : void
return void

XnaPointToHaxxitPoint() public method

public XnaPointToHaxxitPoint ( Point p ) : SmartboyDevelopments.Haxxit.Maps.Point
p Point
return SmartboyDevelopments.Haxxit.Maps.Point

XnaVector2ToHaxxitPoint() public method

public XnaVector2ToHaxxitPoint ( Vector2 v ) : SmartboyDevelopments.Haxxit.Maps.Point
v Vector2
return SmartboyDevelopments.Haxxit.Maps.Point