Search in sources :

Example 1 with Sticker

use of cardgame1.Sticker in project cardgame1 by joey101937.

the class CarnifishMinion method onSummon.

@Override
public void onSummon() {
    for (Minion m : owner.minions.getOccupants()) {
        if (m.name.equals("Baitfish")) {
            Sticker s = new Sticker(SpriteHandler.bloodMedium, this, AI.AI.speed);
            Main.wait(AI.AI.speed);
            m.destroy();
        }
    }
}
Also used : Sticker(cardgame1.Sticker) Minion(Minions.Minion)

Example 2 with Sticker

use of cardgame1.Sticker in project cardgame1 by joey101937.

the class SeaSerpentMinion method onSummon.

@Override
public void onSummon() {
    Sticker s = new Sticker(SpriteHandler.bloodMedium, this, AI.AI.speed / 2);
    Main.wait(AI.AI.speed / 2);
    for (Minion m : owner.minions.getOccupants()) {
        if (m.tribe != Tribe.Fish) {
            m.takeDamage(1);
        }
    }
    for (Minion m : owner.opponent.minions.getOccupants()) {
        if (m.tribe != Tribe.Fish) {
            m.takeDamage(1);
        }
    }
}
Also used : Sticker(cardgame1.Sticker) Minion(Minions.Minion)

Example 3 with Sticker

use of cardgame1.Sticker in project cardgame1 by joey101937.

the class ThrasherMinion method onTurnEnd.

@Override
public void onTurnEnd() {
    if (isFrozen || isSilenced) {
        // do not attack if frozen
        isFrozen = false;
        return;
    }
    Sticker s = new Sticker(SpriteHandler.bloodMedium, this, AI.AI.speed / 2);
    Main.wait(AI.AI.speed / 2);
    int roll = (int) (Math.random() * (owner.opponent.minions.numOccupants() + 1));
    if (roll >= owner.opponent.minions.numOccupants()) {
        owner.opponent.takeDamage(attack);
        return;
    }
    Minion target = owner.opponent.minions.getOccupants().get(roll);
    this.refresh();
    this.attack(target);
    Main.wait(AI.AI.speed / 2);
}
Also used : Sticker(cardgame1.Sticker) Minion(Minions.Minion)

Example 4 with Sticker

use of cardgame1.Sticker in project cardgame1 by joey101937.

the class SwollowTrap method onSummon.

@Override
public void onSummon(Minion m) {
    if (m.owner != owner && m.health < 3) {
        Sticker reveal = new Sticker(parent, 1700, 200, AI.AI.speed * 6);
        Sticker blood = new Sticker(SpriteHandler.bloodMedium, m, AI.AI.speed * 6);
        Main.wait(AI.AI.speed * 6);
        m.silence();
        m.destroy();
        owner.traps.remove(this);
        m.destroy();
    }
}
Also used : Sticker(cardgame1.Sticker)

Example 5 with Sticker

use of cardgame1.Sticker in project cardgame1 by joey101937.

the class ZombieTrap method onSummon.

@Override
public void onSummon(Minion m) {
    if (m.owner == this.owner || !active) {
        return;
    }
    active = false;
    Sticker reveal = new Sticker(parent, 1700, 200, AI.AI.speed * 6);
    Sticker skull = new Sticker(SpriteHandler.skullEffect, m, AI.AI.speed * 6);
    Main.wait(AI.AI.speed * 6);
    m.destroy();
    m.owner.minions.add(new ZombieMinion(m.owner, 3, 1));
    owner.traps.remove(this);
}
Also used : Sticker(cardgame1.Sticker) ZombieMinion(Minions.Undead.ZombieMinion)

Aggregations

Sticker (cardgame1.Sticker)20 Minion (Minions.Minion)7 ArrayList (java.util.ArrayList)2 Card (Cards.Card)1 BaitfishCard (Cards.Fish.BaitfishCard)1 SeaSerpentCard (Cards.Fish.SeaSerpentCard)1 ZombieMinion (Minions.Undead.ZombieMinion)1