Rogue101/src/main/java/inf101/v18/rogue101/object/NonPlayerCharacter.java
EpicKnarvik97 5c19c3133c
All checks were successful
EpicKnarvik97/Rogue101/pipeline/head This commit looks good
Changes a bunch of code
Renames some badly named interfaces and classes
Changes a bunch of packages for better structure
Adds some missing comments
Improves path finding performance somewhat
Adds an NPC death sound
Makes fake walls noticeable
Makes all NPCs drop their items when they die (as the NPCs may steal items from a player)
2023-08-13 14:24:53 +02:00

23 lines
482 B
Java

package inf101.v18.rogue101.object;
import inf101.v18.rogue101.game.Game;
/**
* An actor controlled by the computer
*
* @author anya
*/
public interface NonPlayerCharacter extends Actor {
/**
* Do one turn for this non-player
* <p>
* This INonPlayer will be the game's current actor ({@link Game#getActor()})
* for the duration of this method call.
*
* @param game Game, for interacting with the world
*/
void doTurn(Game game);
}