|
@ -1,10 +1,19 @@ |
|
|
|
|
|
//Imports
|
|
|
const Card = require('../Card'); |
|
|
const Card = require('../Card'); |
|
|
const uno = require('../../uno'); |
|
|
const uno = require('../../uno'); |
|
|
|
|
|
|
|
|
|
|
|
//Klasse ChooseColor für FarbWahlKarten
|
|
|
class ChooseColor extends Card { |
|
|
class ChooseColor extends Card { |
|
|
|
|
|
|
|
|
|
|
|
//Konstruktor für das Erstellen einer ChooseColor-Karte
|
|
|
constructor(name) { |
|
|
constructor(name) { |
|
|
|
|
|
|
|
|
|
|
|
//An Konstruktor von Cards weitergeben
|
|
|
super(name, uno.CARD_COLORS[0]); |
|
|
super(name, uno.CARD_COLORS[0]); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//Exportiert Modul ChooseColor
|
|
|
module.exports = ChooseColor; |
|
|
module.exports = ChooseColor; |