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

14
15
  cards : Card[];
  score : Score;
Corentin Guillevic's avatar
Corentin Guillevic committed
16
  planet : Planet;
Corentin Guillevic's avatar
Corentin Guillevic committed
17
  reserve : Reserve;
18

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

26
27
28
  ngOnInit() {
    
  }
29
}