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

13
14
  cards : Card[];
  score : Score;
Corentin Guillevic's avatar
Corentin Guillevic committed
15
  planet : Planet;
16

17
18
19
  constructor() { 
    this.cards = [ANTRE, ANGOISSE, RESISTANCE];
    this.score = {traque : 18, creature : 2, disposition : "FRONT"}
Corentin Guillevic's avatar
Corentin Guillevic committed
20
    this.planet = PLANET_MOCK;
21
22
  }

23
24
25
  ngOnInit() {
    
  }
26
}