记得之前写游戏玩家类的时候,对于玩家数据的修改,我们总是提供这样的接口.比如是对玩家金钱的修改. public Player { private int money = 0; public void addMoney(int money) { this.money = this.money + money; } public void deductMoney(int money) { this.money = this.money - money; } public int getMoney()