-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
src/main/java/org/cyberpwn/phantom/game/PhantomGamePlayer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |