Skip to content

Commit

Permalink
Phantom GamePlayers
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberpwnn committed Jul 12, 2016
1 parent e91d6b2 commit 8eedaf3
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/main/java/org/cyberpwn/phantom/game/PhantomGamePlayer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package org.cyberpwn.phantom.game;

import org.bukkit.entity.Player;

public class PhantomGamePlayer<G extends Game<G, T, P>, T extends Team<G, T, P>, P extends GamePlayer<G, T, P>> implements GamePlayer<G, T, P>
{
private Player player;
private G game;
private T team;

public PhantomGamePlayer(Player player, G game)
{
this.player = player;
this.game = game;
this.team = null;
}

@Override
public G getGame()
{
return game;
}

@Override
public T getTeam()
{
return team;
}

@Override
public Player getPlayer()
{
return player;
}

@Override
public void setTeam(T team)
{
this.team = team;
}

}

0 comments on commit 8eedaf3

Please sign in to comment.