player.service.ts 629 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { Injectable } from '@angular/core';
import {Observable, of} from 'rxjs'
import { Hand } from './hand';
import { HAND_TRAQUE_MOCK, PLANET_MOCK, RESERVE_MOCK, SCORE_MOCK } from './mock-card';
import { Planet } from './planet';
import { Reserve } from './reserve';
import { Score } from './score';

@Injectable({
  providedIn: 'root'
})
export class PlayerService {

  constructor() { }

  getScore() : Observable<Score> {
    return of(SCORE_MOCK);
  }

  getPlanet() : Planet {
    return PLANET_MOCK;
  }

  getReserve() : Reserve {
    return RESERVE_MOCK;
  }

  getHand() : Hand {
    return HAND_TRAQUE_MOCK;
  }  
}