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

📄 pcbean.java

📁 CroftSoft Code Library是一个开源的可移植的纯Java游戏库
💻 JAVA
字号:
     package com.croftsoft.apps.wyrm.entity;     import java.security.SecureRandom;     import java.util.Random;     import javax.ejb.*;     /*********************************************************************     * The player character bean.     *     * @version     *   2002-11-04     * @since     *   2002-09-30     * @author     *   <a href="http://alumni.caltech.edu/~croft">David Wallace Croft</a>     *********************************************************************/     public abstract class  PcBean       implements EntityBean     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     {     public abstract Long    getId     ( );     public abstract String  getName   ( );     public abstract String  getState  ( );     public abstract long    getHealth ( );     public abstract long    getWealth ( );     public abstract long    getLevel  ( );     public abstract long    getExperience ( );     //     public abstract void  setId         ( Long    id         );     public abstract void  setName       ( String  name       );     public abstract void  setState      ( String  state      );     public abstract void  setHealth     ( long    health     );     public abstract void  setWealth     ( long    wealth     );     public abstract void  setLevel      ( long    level      );     public abstract void  setExperience ( long    experience );     //     private static final Random  random = new SecureRandom ( );     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     public Long  ejbCreate ( )       throws CreateException     //////////////////////////////////////////////////////////////////////     {       setId ( new Long ( random.nextLong ( ) ) );       return null;     }     public void  ejbPostCreate ( ) { }     public void  setEntityContext ( EntityContext  ctx ) { }     public void  unsetEntityContext ( ) { }     public void  ejbActivate ( ) { }     public void  ejbPassivate ( ) { }     public void  ejbLoad ( ) { }     public void  ejbStore ( ) { }     public void  ejbRemove ( ) { }     //////////////////////////////////////////////////////////////////////     //////////////////////////////////////////////////////////////////////     }

⌨️ 快捷键说明

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