加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
#--------------------------------------------------------------------------   # ● 生成指令列表   #--------------------------------------------------------------------------   def make_command_list     add_command(Vocab::new_game, :new_game)     add_command(Vocab::continue, :continue, continue_enabled)     add_command(Vocab::shutdown, :shutdown)   end 
 
 #--------------------------------------------------------------------------  
  # ● 生成指令列表  
  #--------------------------------------------------------------------------  
  def make_command_list  
    add_command(Vocab::new_game, :new_game)  
    add_command(Vocab::continue, :continue, continue_enabled)  
    add_command(Vocab::shutdown, :shutdown)  
  end  
 
  
  
Vocab::new_game 
这好像是调用Vocab里的new_game方法的样子... 
然而Vocab里 
def self.new_game;    command(18);  end   # 开始游戏 
 
 def self.new_game;    command(18);  end   # 开始游戏  
 
  
  
却有个command(18) 
呃...这个command(18)在哪定义的? 
我怎么找不到... 
我猜command(18)的值是"开始游戏"吧... |