打字猴:1.70046045e+09
1700460450
1700460451 if(this.isProxy()){
1700460452
1700460453 System.out.println(this.name+“在打怪!”);
1700460454
1700460455 }else{
1700460456
1700460457 System.out.println(“请使用指定的代理访问”);
1700460458
1700460459 }
1700460460
1700460461 }
1700460462
1700460463 //进游戏之前你肯定要登录吧,这是一个必要条件
1700460464
1700460465 public void login(String user,String password){
1700460466
1700460467 if(this.isProxy()){
1700460468
1700460469 System.out.println(“登录名为”+user+“的用户”+this.name+“登录成功!”);
1700460470
1700460471 }else{
1700460472
1700460473 System.out.println(“请使用指定的代理访问”);
1700460474
1700460475 }
1700460476
1700460477 }
1700460478
1700460479 //升级,升级有很多方法,花钱买是一种,做任务也是一种
1700460480
1700460481 public void upgrade(){
1700460482
1700460483 if(this.isProxy()){
1700460484
1700460485 System.out.println(this.name+“又升了一级!”);
1700460486
1700460487 }else{
1700460488
1700460489 System.out.println(“请使用指定的代理访问”);
1700460490
1700460491 }
1700460492
1700460493 }
1700460494
1700460495 //校验是否是代理访问
1700460496
1700460497 private boolean isProxy(){
1700460498
1700460499 if(this.proxy==null){
[ 上一页 ]  [ :1.70046045e+09 ]  [ 下一页 ]