Skip to content

Commit

Permalink
adding cards to DefaultZoneView
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Feb 3, 2015
1 parent 3cb591f commit e59e1fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gdx/core/src/com/cardshifter/gdx/DefaultZoneView.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.cardshifter.api.outgoing.CardInfoMessage;
import com.cardshifter.api.outgoing.ZoneMessage;
import com.cardshifter.gdx.ui.CardView;
import com.cardshifter.gdx.ui.ZoneView;

public class DefaultZoneView extends ZoneView {

private final Table table;
private final CardshifterGame game;

public DefaultZoneView(CardshifterGame game, ZoneMessage message) {
this.table = new Table(game.skin);
this.game = game;
}

@Override
public void addCard(CardInfoMessage message) {

CardView view = new CardView(this.game, message);
table.add(view.getTable());
}

@Override
Expand Down

0 comments on commit e59e1fb

Please sign in to comment.