C# Класс SmartboyDevelopments.Haxxit.MonoGame.GameStates.MapDisplayGameState

Наследование: HaxxitGameState
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Draw() публичный Метод

public Draw ( SpriteBatch sprite_batch ) : void
sprite_batch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

HaxxitPointToXnaRectangle() публичный Метод

public HaxxitPointToXnaRectangle ( SmartboyDevelopments.Haxxit p ) : Rectangle
p SmartboyDevelopments.Haxxit
Результат Microsoft.Xna.Framework.Rectangle

Init() публичный Метод

public Init ( ) : void
Результат void

LoadContent() публичный Метод

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
Результат void

MapDisplayGameState() публичный Метод

public MapDisplayGameState ( SmartboyDevelopments.Haxxit map ) : System
map SmartboyDevelopments.Haxxit
Результат System

NewMediator() публичный Метод

public NewMediator ( SimplePubSub mediator ) : void
mediator SimplePubSub
Результат void

SubscribeAll() публичный Метод

public SubscribeAll ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

XnaPointToHaxxitPoint() публичный Метод

public XnaPointToHaxxitPoint ( Point p ) : SmartboyDevelopments.Haxxit.Maps.Point
p Point
Результат SmartboyDevelopments.Haxxit.Maps.Point

XnaVector2ToHaxxitPoint() публичный Метод

public XnaVector2ToHaxxitPoint ( Vector2 v ) : SmartboyDevelopments.Haxxit.Maps.Point
v Vector2
Результат SmartboyDevelopments.Haxxit.Maps.Point