C# 클래스 Server.ServerSideMenu

파일 보기 프로젝트 열기: pmyoung/Advanced-Game-Project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
confirm ServerSideConfirm
health int
playerNum int
pointsToWin int

공개 메소드들

메소드 설명
ServerSideMenu ( ) : System

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
IHealth_TextChanged ( object sender, EventArgs e ) : void

IHealth_TextChanged. This method is called when the user enters a number for health. It checks to make sure that a number is entered, and throws an exception if an incorrect format is entered. It sets the health value.

IPlayerNumbers_SelectedIndexChanged ( object sender, EventArgs e ) : void

IPlayerNumbers_SelectedIndexChanged. This method is called when the user selects an item from the dropdown list. It sets the playerNum.

IPoints_TextChanged ( object sender, EventArgs e ) : void

IPoints_TextChanged. This method is called when the user enters a number for the points. It checks to make sure that the value entered is in the correct format and throws an error if not. It modifies the pointsToWin.

InitializeComponent ( ) : void

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

Start_Click ( object sender, EventArgs e ) : void

Start_Click. This method is called when the user clicks on the "Start" Button. It creates a new serverConfirm form and closes this form iff the user selected yes from the confirm form.

메소드 상세

Dispose() 보호된 메소드

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

ServerSideMenu() 공개 메소드

public ServerSideMenu ( ) : System
리턴 System

프로퍼티 상세

confirm 공개적으로 프로퍼티

The constructor takes in no variables and initializes all the components ServerSideConfirm. The confirm form Int. The number of players. If an incorrect value is entered the default is two Int. The amount of health the players have. If an incorrect value is entered the default is 30 Int. The number of points a player needs to win. If an incorrect value is entered the default is 100
public ServerSideConfirm,Server confirm
리턴 ServerSideConfirm

health 공개적으로 프로퍼티

public int health
리턴 int

playerNum 공개적으로 프로퍼티

public int playerNum
리턴 int

pointsToWin 공개적으로 프로퍼티

public int pointsToWin
리턴 int