webclient/js/GUI/Card/TurnedCard.js

13 lines
234 B
JavaScript

import * as Card from GUI.Card;
import dom from GUI.Screen.Game.State;
return {
make: TurnedCard
};
function TurnedCard(name) {
var card = Card.make(name);
card.dom.id = "turned";
dom.deck.appendChild(card.dom);
return card;
}