| author | indvdum |
| Sun, 19 Jun 2011 19:44:06 +0400 | |
| changeset 106 | 643b85a8a16b |
| parent 80 | fcdce54b2f25 |
| child 122 | 845c89fa268e |
| permissions | -rw-r--r-- |
1 package ru.alphatech.icfpc.game;
3 import ru.alphatech.icfpc.cards.I;
6 public class Slot
7 {
8 private int _vitality = 10000;
10 private IValue _value = new I();
12 private int id = -1;
14 public int getId() {
15 return id;
16 }
18 public Slot(int id){
19 if(id < 0 || id > 255)
20 throw new ICFPCException();
21 this.id = id;
22 }
24 public void setVitality(int vitality)
25 {
26 _vitality = vitality;
27 }
29 public int getVitality()
30 {
31 return _vitality;
32 }
34 public boolean isZombie(){
35 return _vitality == -1;
36 }
38 public IValue getValue()
39 {
40 return _value;
41 }
43 public void putValue(IValue value)
44 {
45 _value = value;
46 }
47 }