大廈游覽圖,通過(guò)命令行來(lái)實(shí)現(xiàn)
System.out.println("where 顯示當(dāng)前在什么地方")
System.out.println("list 列出當(dāng)前位置的物品")
System.out.println("list allspots 列出大廈內(nèi)所有地點(diǎn)")
System.out.println("list spots 列出當(dāng)前位置附近的地點(diǎn)")
System.out.println("list goods 列出當(dāng)前位置的物品")
System.out.println("goto someplace 到另一個(gè)地點(diǎn)")
System.out.println("look somegoods 查詢某個(gè)物品是否在當(dāng)前地點(diǎn)")
System.out.println("help 命令行幫助")
System.out.println("exit 退出命令行")
標(biāo)簽:
println
System
out
where
上傳時(shí)間:
2015-12-08
上傳用戶:Miyuki