C# Class Air_Hockey_Simulator.AirHockeySimCtrl

Inheritance: System.Windows.Forms.UserControl
Datei anzeigen Open project: CallumJHays/AirHockeyRobot

Public Properties

Property Type Description
tm MicroTimer

Public Methods

Method Description
AirHockeySimCtrl ( ) : System
DrawArc ( Graphics g, Arc a, Pen p ) : void
DrawLine ( Graphics g, Line l, Pen p ) : void
Init ( ) : void
OnUpdated ( ) : void
SetupGraphics ( Graphics g, string detail ) : void
getFromInt ( int i ) : Pen
s ( double input ) : float
si ( double input ) : int

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
InitializeComponent ( ) : void

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

Tm_MicroTimerElapsed ( object sender, MicroTimerEventArgs timerEventArgs ) : void
getPuckRectangle ( Puck p ) : RectangleF

Method Details

AirHockeySimCtrl() public method

public AirHockeySimCtrl ( ) : System
return System

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

DrawArc() public method

public DrawArc ( Graphics g, Arc a, Pen p ) : void
g System.Drawing.Graphics
a Arc
p System.Drawing.Pen
return void

DrawLine() public method

public DrawLine ( Graphics g, Line l, Pen p ) : void
g System.Drawing.Graphics
l Line
p System.Drawing.Pen
return void

Init() public method

public Init ( ) : void
return void

OnPaint() protected method

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

OnUpdated() public method

public OnUpdated ( ) : void
return void

SetupGraphics() public method

public SetupGraphics ( Graphics g, string detail ) : void
g System.Drawing.Graphics
detail string
return void

getFromInt() public method

public getFromInt ( int i ) : Pen
i int
return System.Drawing.Pen

s() public method

public s ( double input ) : float
input double
return float

si() public method

public si ( double input ) : int
input double
return int

Property Details

tm public_oe property

public MicroTimer,Air_Hockey_Simulator tm
return MicroTimer