game.component.ts 545 Bytes
Newer Older
1
import { Component, OnInit } from '@angular/core';
2
3
4
import { Card } from '../card';
import { ANGOISSE, ANTRE, RESISTANCE } from '../mock-card';
import { Score } from '../score';
5
6
7
8
9
10
11
@Component({
  selector: 'app-game',
  templateUrl: './game.component.html',
  styleUrls: ['./game.component.css']
})
export class GameComponent implements OnInit {

12
13
  cards : Card[];
  score : Score;
14

15
16
17
  constructor() { 
    this.cards = [ANTRE, ANGOISSE, RESISTANCE];
    this.score = {traque : 18, creature : 2, disposition : "FRONT"}
18
19
  }

20
21
22
  ngOnInit() {
    
  }
23
}