| author | akhmetovlz |
| Sun, 19 Jun 2011 12:53:24 +0400 | |
| changeset 42 | ee46d43195c1 |
| parent 30 | 2579b2cd9446 |
| child 43 | 4ba83edc4361 |
| permissions | -rw-r--r-- |
| turtle@12 | 1 |
package ru.alphatech.icfpc.game; |
| 0-range@4 | 2 |
|
| turtle@28 | 3 |
import ru.alphatech.icfpc.cards.I; |
| akhmetovlz@30 | 4 |
|
| akhmetovlz@17 | 5 |
import ru.alphatech.icfpc.cards.ICard; |
| akhmetovlz@17 | 6 |
|
| 0-range@4 | 7 |
|
| turtle@11 | 8 |
public class Player |
| 0-range@4 | 9 |
{
|
| turtle@28 | 10 |
private Slot[] slots = new Slot[256]; |
| akhmetovlz@30 | 11 |
int registers[] = new int[4]; |
| turtle@28 | 12 |
|
| turtle@28 | 13 |
public Player() |
| turtle@28 | 14 |
{
|
| turtle@28 | 15 |
for(int i = 0; i < 255; i++) |
| turtle@28 | 16 |
{
|
| turtle@28 | 17 |
slots[i].setVitality(10000); |
| turtle@28 | 18 |
slots[i].putValue(new I()); |
| turtle@28 | 19 |
} |
| akhmetovlz@30 | 20 |
registers[0] = 0; |
| akhmetovlz@30 | 21 |
registers[1] = 1; |
| akhmetovlz@30 | 22 |
registers[2] = 2; |
| akhmetovlz@30 | 23 |
registers[3] = 3; |
| turtle@28 | 24 |
} |
| turtle@28 | 25 |
|
| turtle@11 | 26 |
public Slot getSlot(int i) |
| turtle@11 | 27 |
{
|
| turtle@28 | 28 |
return slots[i]; |
| turtle@11 | 29 |
} |
| akhmetovlz@17 | 30 |
|
| akhmetovlz@30 | 31 |
public Slot getRegisterByIndex(int registerIdex){
|
| akhmetovlz@30 | 32 |
return getSlot( registers[registerIdex] ); |
| akhmetovlz@30 | 33 |
} |
| akhmetovlz@30 | 34 |
|
| akhmetovlz@17 | 35 |
public void applyCardToSlot(ICard card, Slot slot){
|
| akhmetovlz@17 | 36 |
throw new RuntimeException("Not impilemented yet.");
|
| akhmetovlz@17 | 37 |
} |
| akhmetovlz@17 | 38 |
|
| akhmetovlz@17 | 39 |
public void applySlotToCard(Slot slot, ICard card){
|
| akhmetovlz@17 | 40 |
throw new RuntimeException("Not impilemented yet.");
|
| akhmetovlz@17 | 41 |
} |
| akhmetovlz@19 | 42 |
|
| akhmetovlz@19 | 43 |
public PlayerStatistic getStatistic(){
|
| akhmetovlz@19 | 44 |
throw new RuntimeException("Not impilemented yet.");
|
| akhmetovlz@19 | 45 |
} |
| akhmetovlz@30 | 46 |
|
| akhmetovlz@30 | 47 |
|
| 0-range@4 | 48 |
} |