Skip to content

PGameFrame

Tal edited this page Dec 20, 2020 · 2 revisions

PGameFrame

Constructor Details

PGameFrame

public PGameFrame​(java.lang.String title) constructor Parameters: title - - games title

Method Details

update

public void update​(Arena ar) update the graph paint base on games arena Parameters: ar - - games arena

paint

public void paint​(java.awt.Graphics g) Overrides: paint in class java.awt.Window

paintComponent

public void paintComponent​(java.awt.Graphics g) paint the game graph Parameters: g - - graphics

getNumOfMoves

public double getNumOfMoves​(java.lang.String info) return num of move base on server information Parameters: info - - server information Returns: num of move

getGrade

public double getGrade​(java.lang.String info) return current games grade base on server information Parameters: info - - server information Returns: current games grade

getTimer

public long getTimer() get games timer Returns: timer

setTimer

public void setTimer​(long l) set games timer Parameters: l - - time

Clone this wiki locally