C# Class MapEditor.Form1

Inheritance: System.Windows.Forms.Form
Show file Open project: Wotuu/RTS_XNA_v2

Public Properties

Property Type Description
CollisionMap CollisionMap
EraseTexture Texture2D
MarqueeSelection MarqueeData
Players List
TileSetImagepath string
camera MapEditor.Camera
cursor Texture2D
linetexture Texture2D
nodetext Texture2D
selectedrectangle Rectangle
spriteBatch SpriteBatch
spriteBatchMiniMap SpriteBatch
tileMap TileMap.TileMap
tilemaptexture Texture2D
tileset Tileset

Public Methods

Method Description
Form1 ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
BtnDrawNodes_Click ( object sender, EventArgs e ) : void
BtnLayerDown_Click ( object sender, EventArgs e ) : void
BtnLayerUp_Click ( object sender, EventArgs e ) : void
CreateMarqueeArea ( System RectangleA, System RectangleB ) : Rectangle
DrawDisplay ( ) : void
DrawGrid ( ) : void
DrawLayer ( int layer ) : void
DrawMarqueeSelection ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Logic ( ) : void
Render ( ) : void
SnapToGrid ( System Location ) : System.Drawing.Rectangle
createNewMap ( ) : void
loadToolStripMenuItem_Click ( object sender, EventArgs e ) : void
loadtileset ( ) : void
moveminimaprect ( ) : void
newMapToolStripMenuItem_Click ( object sender, EventArgs e ) : void
openTilesetToolStripMenuItem_Click ( object sender, EventArgs e ) : void
saveToolStripMenuItem_Click ( object sender, EventArgs e ) : void
tileDisplay1_MouseDown ( object sender, MouseEventArgs e ) : void
tileDisplay1_MouseEnter ( object sender, EventArgs e ) : void
tileDisplay1_MouseLeave ( object sender, EventArgs e ) : void
tileDisplay1_MouseMove ( object sender, MouseEventArgs e ) : void
tileDisplay1_MouseUp ( object sender, MouseEventArgs e ) : void
tileDisplay1_OnDraw ( object sender, EventArgs e ) : void
tileDisplay1_OnInitialize ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Form1() public method

public Form1 ( ) : System
return System

Property Details

CollisionMap public static property

public static CollisionMap CollisionMap
return CollisionMap

EraseTexture public property

public Texture2D EraseTexture
return Texture2D

MarqueeSelection public static property

public static MarqueeData MarqueeSelection
return MarqueeData

Players public static property

public static List Players
return List

TileSetImagepath public property

public string TileSetImagepath
return string

camera public static property

public static Camera,MapEditor camera
return MapEditor.Camera

cursor public property

public Texture2D cursor
return Texture2D

linetexture public static property

public static Texture2D linetexture
return Texture2D

nodetext public property

public Texture2D nodetext
return Texture2D

selectedrectangle public property

public Rectangle selectedrectangle
return Rectangle

spriteBatch public property

public SpriteBatch spriteBatch
return SpriteBatch

spriteBatchMiniMap public property

public SpriteBatch spriteBatchMiniMap
return SpriteBatch

tileMap public static property

public static TileMap.TileMap tileMap
return TileMap.TileMap

tilemaptexture public static property

public static Texture2D tilemaptexture
return Texture2D

tileset public static property

public static Tileset tileset
return Tileset