Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
State.java
Package: lianliankan.rar [view]
Upload User: jennyfly
Upload Date: 2021-08-10
Package Size: 735k
Code Size: 1k
Category:
Games
Development Platform:
Java
- package model;
- /**
- * 本类提供了用于保存游戏的数据实现
- *
- * @author 何晓飞
- *
- */
- public class State {
- private String pictureFile;
- private String gameMusic;
- private int level;
- private int score;
- private int reminds;
- /**
- *构造一个数据单元
- *
- * @param pictureFile
- * 图片文件
- * @param gameMusic
- * 音乐文件
- * @param level
- * 关数
- * @param score
- * 得分
- * @param reminds
- * 提示数
- */
- public State(String pictureFile, String gameMusic, int level,int score,int reminds) {
- this.pictureFile = pictureFile;
- this.gameMusic = gameMusic;
- this.level = level;
- this.score = score;
- this.reminds=reminds;
- }
- /**
- *
- * @return 音乐文件
- */
- public String getGameMusic() {
- return this.gameMusic;
- }
- /**
- *
- * @return 关数
- */
- public int getLevel() {
- return this.level;
- }
- /**
- *
- * @return 图片文件
- */
- public String getPictureFile() {
- return this.pictureFile;
- }
- /**
- *
- * @return 提示次数
- */
- public int getReminds(){
- return this.reminds;
- }
- /**
- *
- * @return 分数
- */
- public int getScore(){
- return this.score;
- }
- }