Nextpeer LibGdx 错误

Nextpeer LibGdx Error

我是 LibGdx 的新手(我有 3 天的经验......所以我是嗯) 大约 3 小时前我得到了 Nextpeer,如果没有 100 个错误,我什么都做不了。文档遗漏了细节(我认为),我不知道该怎么做...

我没有 Nextpeer 设置代码,所有内容都加载到我的 Eclipse IDE。

所以...我在问什么?

好吧,在我问之前,让我告诉你我的情况。

LibGdx 流程: Main.java -> MainMenuScreen.java -> (NextPeer 菜单?) -> Game.java

我已经尝试 运行 主 class 中的 NextParse.Init 但是我 错误说我需要配置我的构建路径 。 ?什么 ?也许我听起来很笨,所以有第一个问题。好吧...所以现在假设我确实以某种方式初始化了我的软件...https://nextpeer.atlassian.net/wiki/display/NS/libGDX 说要使用这个构造函数

public SuperJumper(Tournaments tournaments) {
    // If we have a supported tournaments object, set the game as callback
    if (tournaments != null && tournaments.isSupported()) {
        tournaments.setTournamentsCallback(this);
         
        // Load Nextpeer plugin with the tournaments instance
        NextpeerPlugin.load(tournaments);
    }

所以我使用了构造函数,但是我在

上得到了错误
tournaments.setTournamentsCallback(this);

IDE 错误警告事情:The method setTournamentsCallback(TournamentsCallback) in the type Tournaments is not applicable for the arguments (GameScreen)

我知道我在做什么吗...不是真的有 NextPeer。

请尝试帮助我解决上述问题,或向我解释一些概念。谢谢!

根据维基:

Next, we'll have the Game subclass conform to the TournamentsCallback.java interface.

让 SuperJumper 实现 TournamentsCallback 接口,然后上面的代码就可以工作了。