prototype原型移植到uniapp,如何解决?

想将之前项目当中的javascript原型方法移植到uniapp当中,代码类似于下面这样。

function Game(Player){
    this.Player = 1;
}
Game.prototype.makeMove = function(move) {
    this.Player = 2;
}
Game.prototype.undoMove = function() {
    this.Player = 3;
}

function Small(Player){
    this.Player = 2;
}
Small.prototype.makeMove = function(move) {
    this.Player = 3;
}
Small.prototype.undoMove= function() {
    this.Player = 5;
}

应该如何操作并使用它呢?

和JS一样的用法

img

img

uniapp里面也是js的语法

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^