Card.js 220 B

1234567891011121314151617
  1. class Card {
  2. constructor() {
  3. this.attack = [0,0,0,0];
  4. this.portrait = "";
  5. this.owner = "";
  6. }
  7. setAttack(attack) {
  8. this.attack = attack;
  9. }
  10. setOwner(owner) {
  11. this.owner = owner;
  12. }
  13. }
  14. module.exports = Card;