C# Class Mahjong.Forms.Table

Exibir arquivo Open project: Superbil/mahjong Class Usage Examples

Protected Properties

Property Type Description
all AllPlayers
padding int

Private Properties

Property Type Description
PlaySound void
PlaySound_Menu_CheckedChanged void
PlaySound_Menu_Click void
SetControl void
ShowMessageBox_Menu_CheckedChanged void
ShowMessageBox_Menu_Click void
Table_KeyUp void
addimage_player void
clearControl void
clearFlowLayout_Control void
setFlowLayout void
setFlowLayout_Anchor void
setFlowLayout_Dock void
setFlowLayout_FlowDirection void
setFlowLayout_Margin void
setFlowLayout_location void
setFlowLayout_name void
setFlowLayout_size void
儲存牌局ToolStripMenuItem_Click void
新遊戲ToolStripMenuItem_Click void
正常ToolStripMenuItem_Click void
結束ToolStripMenuItem1_Click void
設定ToolStripMenuItem1_Click void
讀取牌局ToolStripMenuItem_Click void
開新遊戲ToolStripMenuItem_Click void
關於ToolStripMenuItem1_Click void
非常快ToolStripMenuItem_Click void
非常慢ToolStripMenuItem_Click void

Public Methods

Method Description
Setup ( AllPlayers all ) : void

設定玩家

Table ( ) : System
addImage ( ) : void

新增玩家、桌面圖片

addNowPlayer ( ) : void
add_flowLayoutBrands ( location state, Mahjong.Forms.BrandBox brandbox ) : void
cleanImage ( ) : void

清除所有顯示的圖片

clearAll ( ) : void

清除所有控制項

setInforamtion ( ) : void
showBrand ( Brand brand ) : void
updateAllPlayer ( ) : void
updateInforamation ( ) : void

更新Title和資訊盒

updateNowPlayer ( ) : void

更新現在玩家

updateTable ( ) : void

更新桌面

Protected Methods

Method Description
ResizeBitmap ( Bitmap b, double resize ) : Bitmap

重繪Bitmap(縮放)

addEast ( ) : void
addNouth ( ) : void
addShowTable ( ) : void
addSouth ( ) : void
addTable ( ) : void
addWest ( ) : void
addimage ( location state, Brand brand, RotateFlipType rotate ) : void
addimage_iterator ( Iterator iterator, location state, RotateFlipType rotate ) : void

新增圖片反覆器

brandBox_MouseClick ( object sender, EventArgs e ) : void

按下一張牌的事件

brandBox_MouseLeave ( object sender, EventArgs e ) : void
cheat_MouseClick ( object sender, MouseEventArgs e ) : void

作弊事件

clearAllPlayer ( ) : void
clearFlowLayoutBrands_Table ( ) : void
clearNowPlayer ( ) : void
debug_Click ( object sender, EventArgs e ) : void
setTitle ( ) : void
tempBrandbox_MouseMove ( object sender, MouseEventArgs e ) : void
updateSouth ( ) : void

Private Methods

Method Description
PlaySound ( Brand brand ) : void

播放打牌聲音

PlaySound_Menu_CheckedChanged ( object sender, EventArgs e ) : void
PlaySound_Menu_Click ( object sender, EventArgs e ) : void
SetControl ( FlowLayoutPanel flp ) : void
ShowMessageBox_Menu_CheckedChanged ( object sender, EventArgs e ) : void
ShowMessageBox_Menu_Click ( object sender, EventArgs e ) : void
Table_KeyUp ( object sender, KeyEventArgs e ) : void
addimage_player ( BrandPlayer player, location state, RotateFlipType rotate ) : void
clearControl ( ) : void
clearFlowLayout_Control ( FlowLayoutPanel f ) : void
setFlowLayout ( ) : void
setFlowLayout_Anchor ( ) : void
setFlowLayout_Dock ( ) : void
setFlowLayout_FlowDirection ( ) : void
setFlowLayout_Margin ( int size ) : void
setFlowLayout_location ( ) : void
setFlowLayout_name ( ) : void
setFlowLayout_size ( ) : void
儲存牌局ToolStripMenuItem_Click ( object sender, EventArgs e ) : void
新遊戲ToolStripMenuItem_Click ( object sender, EventArgs e ) : void
正常ToolStripMenuItem_Click ( object sender, EventArgs e ) : void
結束ToolStripMenuItem1_Click ( object sender, EventArgs e ) : void
設定ToolStripMenuItem1_Click ( object sender, EventArgs e ) : void
讀取牌局ToolStripMenuItem_Click ( object sender, EventArgs e ) : void
開新遊戲ToolStripMenuItem_Click ( object sender, EventArgs e ) : void
關於ToolStripMenuItem1_Click ( object sender, EventArgs e ) : void
非常快ToolStripMenuItem_Click ( object sender, EventArgs e ) : void
非常慢ToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

ResizeBitmap() protected method

重繪Bitmap(縮放)
protected ResizeBitmap ( Bitmap b, double resize ) : Bitmap
b Bitmap 圖型
resize double 比率
return Bitmap

Setup() public method

設定玩家
public Setup ( AllPlayers all ) : void
all AllPlayers AllPlayers
return void

Table() public method

public Table ( ) : System
return System

addEast() protected method

protected addEast ( ) : void
return void

addImage() public method

新增玩家、桌面圖片
public addImage ( ) : void
return void

addNouth() protected method

protected addNouth ( ) : void
return void

addNowPlayer() public method

public addNowPlayer ( ) : void
return void

addShowTable() protected method

protected addShowTable ( ) : void
return void

addSouth() protected method

protected addSouth ( ) : void
return void

addTable() protected method

protected addTable ( ) : void
return void

addWest() protected method

protected addWest ( ) : void
return void

add_flowLayoutBrands() public method

public add_flowLayoutBrands ( location state, Mahjong.Forms.BrandBox brandbox ) : void
state location
brandbox Mahjong.Forms.BrandBox
return void

addimage() protected method

protected addimage ( location state, Brand brand, RotateFlipType rotate ) : void
state location
brand Brand
rotate RotateFlipType
return void

addimage_iterator() protected method

新增圖片反覆器
protected addimage_iterator ( Iterator iterator, location state, RotateFlipType rotate ) : void
iterator Iterator 玩家反覆器
state location 目前方位
rotate RotateFlipType 圖片方向
return void

brandBox_MouseClick() protected method

按下一張牌的事件
protected brandBox_MouseClick ( object sender, EventArgs e ) : void
sender object BrandBox
e EventArgs
return void

brandBox_MouseLeave() protected method

protected brandBox_MouseLeave ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

cheat_MouseClick() protected method

作弊事件
protected cheat_MouseClick ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

cleanImage() public method

清除所有顯示的圖片
public cleanImage ( ) : void
return void

clearAll() public method

清除所有控制項
public clearAll ( ) : void
return void

clearAllPlayer() protected method

protected clearAllPlayer ( ) : void
return void

clearFlowLayoutBrands_Table() protected method

protected clearFlowLayoutBrands_Table ( ) : void
return void

clearNowPlayer() protected method

protected clearNowPlayer ( ) : void
return void

debug_Click() protected method

protected debug_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

setInforamtion() public method

public setInforamtion ( ) : void
return void

setTitle() protected method

protected setTitle ( ) : void
return void

showBrand() public method

public showBrand ( Brand brand ) : void
brand Brand
return void

tempBrandbox_MouseMove() protected method

protected tempBrandbox_MouseMove ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

updateAllPlayer() public method

public updateAllPlayer ( ) : void
return void

updateInforamation() public method

更新Title和資訊盒
public updateInforamation ( ) : void
return void

updateNowPlayer() public method

更新現在玩家
public updateNowPlayer ( ) : void
return void

updateSouth() protected method

protected updateSouth ( ) : void
return void

updateTable() public method

更新桌面
public updateTable ( ) : void
return void

Property Details

all protected_oe property

protected AllPlayers all
return AllPlayers

padding protected_oe property

圖片盒的內距
protected int padding
return int