![JAR search and dependency download from the Maven repository](/logo.png)
org.ggp.base.player.request.grammar.InfoRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alloy-ggp-base Show documentation
Show all versions of alloy-ggp-base Show documentation
A modified version of the GGP-Base library for Alloy.
The newest version!
package org.ggp.base.player.request.grammar;
import org.ggp.base.player.gamer.Gamer;
import org.ggp.base.util.presence.InfoResponse;
public final class InfoRequest extends Request
{
private final Gamer gamer;
public InfoRequest(Gamer gamer)
{
this.gamer = gamer;
}
@Override
public String getMatchId() {
return null;
}
@Override
public String process(long receptionTime)
{
InfoResponse info = new InfoResponse();
info.setName(gamer.getName());
info.setStatus(gamer.getMatch() == null ? "available" : "busy");
info.setSpecies(gamer.getSpecies());
return info.toSymbol().toString();
}
@Override
public String toString()
{
return "info";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy