C# Class Heroes.Core.Castle.frmCastle

Show file Open project: edwardsak/homm

Public Properties

Property Type Description
_buildingName Building
build Building>.Dictionary

Public Methods

Method Description
ShowDialog ( Town town ) : DialogResult
frmCastle ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
AddToArmyInCastle ( Hashtable armyPurKIds ) : void
Draw2 ( ) : void
FindEmptySlot ( ) : int
FindSlotNo ( Label txtBoxs, Label txtBox ) : int
GetHeroId ( Hashtable armies ) : int
HasEmptySlot ( ) : bool
HasTextBox ( TextBox txtBoxs, TextBox txtBox ) : bool
InitializeComponent ( ) : void

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

IsHeroEmptyAfterRemove ( Hashtable prevArmies ) : bool
MoveArmyFromCastleToVisit ( int castleSlotNo, int visitSlotNo ) : void
PplArmies ( Label txtBoxs, Hashtable armyKSlots ) : void
PplGold1 ( Label txtBoxs, int money ) : void
PplResources1 ( Label txtBoxs, int wood, int mercury, int ore, int sulfur, int crystal, int gem ) : void
PplTIMES ( Label txtBoxs, int mth, int wk, int dy ) : void
PplTown ( ) : void
PplVisitingHero ( ) : void
SlotToSlot ( int prevSlotNo, Hashtable prevArmies, int slotNo, Hashtable armies ) : bool
_buttonFort_Clicked ( object sender ) : void
_buttonHall_Clicked ( object sender ) : void
_buttonMage1_Clicked ( object sender ) : void
_buttonMage2_Clicked ( object sender ) : void
_buttonMage3_Clicked ( object sender ) : void
_buttonMage4_Clicked ( object sender ) : void
_buttonShipyard_Clicked ( object sender ) : void
castleView1_MouseClick ( object sender, MouseEventArgs e ) : void
cmdCancel_Click ( object sender, EventArgs e ) : void
cmdSplit_Click ( object sender, EventArgs e ) : void
frmCastle_Load ( object sender, EventArgs e ) : void
lbl_MouseClick ( object sender, MouseEventArgs e ) : void
txtArmyInCastle1_MouseClick ( object sender, MouseEventArgs 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

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

ShowDialog() public method

public ShowDialog ( Town town ) : DialogResult
town Town
return DialogResult

frmCastle() public method

public frmCastle ( ) : System
return System

Property Details

_buildingName public static property

public static Building _buildingName
return Building

build public static property

public static Dictionary build
return Building>.Dictionary