1 package ru.alphatech.icfpc.game;
3 import ru.alphatech.icfpc.cards.I;
8 private int _vitality = 10000;
10 private IValue _value = new I();
19 if(id < 0 || id > 255)
20 throw new ICFPCException();
24 public void setVitality(int vitality)
29 public int getVitality()
34 public boolean isZombie(){
35 return _vitality == -1;
38 public boolean isDead(){
39 return _vitality == 0 || _vitality == -1;
42 public IValue getValue()
47 public void putValue(IValue value)
53 public String toString()
55 return getId() + "={" + getVitality() + "," + getValue() + "}";