v0.3.3: added char properties, starting with IMMOVABLE implementation

This commit is contained in:
Evan Debenham
2015-12-16 04:47:34 -05:00
parent 30404257df
commit e09f40378d
12 changed files with 32 additions and 16 deletions
@@ -40,18 +40,13 @@ public class Shopkeeper extends NPC {
{
name = "shopkeeper";
spriteClass = ShopkeeperSprite.class;
properties.add(Property.IMMOVABLE);
}
@Override
protected boolean act() {
if (startPos == -1) startPos = pos;
if (startPos != pos){
flee();
return true;
}
throwItem();
sprite.turnTo( pos, Dungeon.hero.pos );