Player, Slot, Events added
This commit is contained in:
@@ -3,7 +3,7 @@ package it.polimi.ingsw.gc14.Model.Cards.TribeCards;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCard;
|
||||
|
||||
public abstract class Character extends TribeCard {
|
||||
private CharacterType type;
|
||||
private CharacterType type;
|
||||
public CharacterType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package it.polimi.ingsw.gc14.Model.Cards.TribeCards;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCard;
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import javax.smartcardio.Card;
|
||||
import java.lang.reflect.Array;
|
||||
|
||||
public abstract class EventCard extends TribeCard {
|
||||
// Getters
|
||||
private EventType type;
|
||||
public EventType getType() { return type; }
|
||||
// End getters
|
||||
|
||||
// Constructors
|
||||
public EventCard(int Era, EventType type) {
|
||||
super(Era);
|
||||
this.type = type;
|
||||
}
|
||||
// End Constructors
|
||||
|
||||
// Function
|
||||
// TODO
|
||||
public abstract void activateEvent (ArrayList <Player> playerList);
|
||||
// End Functions
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package it.polimi.ingsw.gc14.Model.Cards.TribeCards;
|
||||
|
||||
public enum EventType {
|
||||
SUSTENANCE, SHAMANIC_RITUAL, CAVE_PAINTINGS, HUNT
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard;
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class CavePaintings extends EventCard {
|
||||
public CavePaintings(int Era) {
|
||||
super(Era, EventType.CAVE_PAINTINGS);
|
||||
}
|
||||
|
||||
// TODO
|
||||
@Override
|
||||
public void activateEvent (ArrayList <Player> playerList){
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard;
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Hunt extends EventCard {
|
||||
public Hunt(int Era) {
|
||||
super(Era, EventType.HUNT);
|
||||
}
|
||||
|
||||
// TODO
|
||||
@Override
|
||||
public void activateEvent (ArrayList <Player> playerList){
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard;
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class ShamanicRitual extends EventCard {
|
||||
public ShamanicRitual(int Era) {
|
||||
super(Era, EventType.SHAMANIC_RITUAL);
|
||||
}
|
||||
|
||||
// TODO
|
||||
@Override
|
||||
public void activateEvent (ArrayList <Player> playerList){
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType;
|
||||
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard;
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Sustenance extends EventCard {
|
||||
public Sustenance(int Era) {
|
||||
super(Era, EventType.SUSTENANCE);
|
||||
}
|
||||
|
||||
// TODO
|
||||
@Override
|
||||
public void activateEvent (ArrayList <Player> playerList){
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user