You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
650 B

  1. export default class Style{
  2. constructor(gameInstanz) {
  3. this._game = gameInstanz;
  4. }
  5. refreshDebug(){
  6. $("#player").html("Spieler: " + this.game.currentPlayerInstanz.name);
  7. //$("#playerCards").html("Spieler: " + this.game.currentPlayerInstanz.name);
  8. $("#cardOnDeck").html("Karte auf dem Tisch: " + this.game.cardOnDeck.name + " - " + this.game.cardOnDeck.color);
  9. $("#playerInGame").html("Spieler im Spiel: " + this.game.players.length);
  10. }
  11. showDebug(){
  12. $('#debug').show();
  13. }
  14. hideDebug(){
  15. $('#debug').hide();
  16. }
  17. get game(){
  18. return this._game;
  19. }
  20. }