90 lines
2.0 KiB
Java
90 lines
2.0 KiB
Java
/*
|
|
* Pixel Dungeon
|
|
* Copyright (C) 2012-2014 Oleg Dolya
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
*/
|
|
package com.shatteredpixel.shatteredpixeldungeon.actors.hero;
|
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
|
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
|
|
|
|
|
public class HeroAction {
|
|
|
|
public int dst;
|
|
|
|
public static class Move extends HeroAction {
|
|
public Move( int dst ) {
|
|
this.dst = dst;
|
|
}
|
|
}
|
|
|
|
public static class PickUp extends HeroAction {
|
|
public PickUp( int dst ) {
|
|
this.dst = dst;
|
|
}
|
|
}
|
|
|
|
public static class OpenChest extends HeroAction {
|
|
public OpenChest( int dst ) {
|
|
this.dst = dst;
|
|
}
|
|
}
|
|
|
|
public static class Buy extends HeroAction {
|
|
public Buy( int dst ) {
|
|
this.dst = dst;
|
|
}
|
|
}
|
|
|
|
public static class Interact extends HeroAction {
|
|
public Mob.NPC npc;
|
|
public Interact( Mob.NPC npc ) {
|
|
this.npc = npc;
|
|
}
|
|
}
|
|
|
|
public static class Unlock extends HeroAction {
|
|
public Unlock( int door ) {
|
|
this.dst = door;
|
|
}
|
|
}
|
|
|
|
public static class Descend extends HeroAction {
|
|
public Descend( int stairs ) {
|
|
this.dst = stairs;
|
|
}
|
|
}
|
|
|
|
public static class Ascend extends HeroAction {
|
|
public Ascend( int stairs ) {
|
|
this.dst = stairs;
|
|
}
|
|
}
|
|
|
|
public static class Cook extends HeroAction {
|
|
public Cook( int pot ) {
|
|
this.dst = pot;
|
|
}
|
|
}
|
|
|
|
public static class Attack extends HeroAction {
|
|
public Char target;
|
|
public Attack( Char target ) {
|
|
this.target = target;
|
|
}
|
|
}
|
|
}
|