⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 token.java

📁 一个java的游戏程序
💻 JAVA
字号:
import java.awt.*;import java.awt.event.*;/** * A super class that is realized by a class for every kind of token in the * program. */class Token{    Player owner;  /**   * Sets witch player-object owns the token   * The player given as parameter is set as owner   */  public void setOwner(Player p)    {	owner = p;    }  /**   * Returns the player-object that owns the token   */  public Player getOwner()    {	return owner;    }  /**   * Draws the token based on the graphical environment and size given as   * parameters.   * Is overwritten by each tokenclass   */  public void paint(Graphics g, Dimension d)    {    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -