C# Class MarioLevelEditor.MainForm

Show file Open project: jazzyjester/Mario-Game

Public Properties

Property Type Description
CurrentImageIndex int
LX int
MainImage Bitmap
OX int
Objects List
Seconds int

Public Methods

Method Description
CheckPosition ( int x, int y ) : LevelEditorObject
DrawAllObjects ( ) : void
LoadEditorObjects ( ) : void
MainForm ( ) : System
ObjectTypeToImage ( LevelEditorObject obj ) : Bitmap
PutBox ( int x, int y, int ind, Boolean Check ) : void
SetListIndexToObjects ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

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

MainForm_Load ( object sender, EventArgs e ) : void
MainForm_Paint ( object sender, PaintEventArgs e ) : void
list_ItemActivate ( object sender, EventArgs e ) : void
list_KeyDown ( object sender, KeyEventArgs e ) : void
mOpen_Click ( object sender, EventArgs e ) : void
mSaveAs_Click ( object sender, EventArgs e ) : void
mSave_Click ( object sender, EventArgs e ) : void
offsetXSelectedToolStripMenuItem_Click ( object sender, EventArgs e ) : void
offsetYSelectedToolStripMenuItem_Click ( object sender, EventArgs e ) : void
pictureLevel_MouseDown ( object sender, MouseEventArgs e ) : void
pictureLevel_MouseEnter ( object sender, EventArgs e ) : void
pictureLevel_MouseLeave ( object sender, EventArgs e ) : void
pictureLevel_MouseMove ( object sender, MouseEventArgs e ) : void
pictureLevel_Paint ( object sender, PaintEventArgs e ) : void
timerobject_Tick ( object sender, EventArgs e ) : void

Method Details

CheckPosition() public method

public CheckPosition ( int x, int y ) : LevelEditorObject
x int
y int
return LevelEditorObject

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

DrawAllObjects() public method

public DrawAllObjects ( ) : void
return void

LoadEditorObjects() public method

public LoadEditorObjects ( ) : void
return void

MainForm() public method

public MainForm ( ) : System
return System

ObjectTypeToImage() public method

public ObjectTypeToImage ( LevelEditorObject obj ) : Bitmap
obj LevelEditorObject
return Bitmap

PutBox() public method

public PutBox ( int x, int y, int ind, Boolean Check ) : void
x int
y int
ind int
Check Boolean
return void

SetListIndexToObjects() public method

public SetListIndexToObjects ( ) : void
return void

Property Details

CurrentImageIndex public property

public int CurrentImageIndex
return int

LX public property

public int LX
return int

MainImage public property

public Bitmap MainImage
return Bitmap

OX public property

public int OX
return int

Objects public property

public List Objects
return List

Seconds public property

public int Seconds
return int