game.component.ts 907 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 { Hand } from '../hand';
import { ANGOISSE, ANTRE, HAND_CREATURE_MOCK, HAND_TRAQUE_MOCK, PLANET_MOCK, RESERVE_MOCK, RESISTANCE } from '../mock-card';
Corentin Guillevic's avatar
Corentin Guillevic committed
5
import { Planet } from '../planet';
Corentin Guillevic's avatar
Corentin Guillevic committed
6
import { Reserve } from '../reserve';
7
import { Score } from '../score';
8
9
10
11
12
13
14
@Component({
  selector: 'app-game',
  templateUrl: './game.component.html',
  styleUrls: ['./game.component.css']
})
export class GameComponent implements OnInit {

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

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

30
31
32
  ngOnInit() {
    
  }
33
}