v0.3.1b: updated some method usage for consistency with the GDX version
This commit is contained in:
parent
d29c9995a5
commit
e0e1c74af0
|
@ -753,13 +753,13 @@ public abstract class Level implements Bundlable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void uproot( int pos ) {
|
public void uproot( int pos ) {
|
||||||
plants.delete(pos);
|
plants.remove(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Trap setTrap( Trap trap, int pos ){
|
public Trap setTrap( Trap trap, int pos ){
|
||||||
Trap existingTrap = traps.get(pos);
|
Trap existingTrap = traps.get(pos);
|
||||||
if (existingTrap != null){
|
if (existingTrap != null){
|
||||||
traps.delete( pos );
|
traps.remove( pos );
|
||||||
if(existingTrap.sprite != null) existingTrap.sprite.kill();
|
if(existingTrap.sprite != null) existingTrap.sprite.kill();
|
||||||
}
|
}
|
||||||
trap.set( pos );
|
trap.set( pos );
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class PitfallTrap extends Trap {
|
||||||
}
|
}
|
||||||
heap.sprite.kill();
|
heap.sprite.kill();
|
||||||
GameScene.discard(heap);
|
GameScene.discard(heap);
|
||||||
Dungeon.level.heaps.delete( pos );
|
Dungeon.level.heaps.remove( pos );
|
||||||
}
|
}
|
||||||
|
|
||||||
Char ch = Actor.findChar( pos );
|
Char ch = Actor.findChar( pos );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user