Created bot infrastructure

This commit is contained in:
dginovker 2019-06-08 21:10:56 -04:00
parent 2a22cfa827
commit d284da0de3
12 changed files with 172 additions and 20 deletions

View file

@ -4,6 +4,8 @@ import org.crandor.game.interaction.Interaction;
import org.crandor.game.node.entity.player.Player;
import org.crandor.game.node.entity.player.ai.AIPBuilder;
import org.crandor.game.node.entity.player.ai.AIPlayer;
import org.crandor.game.node.entity.player.ai.general.GeneralBotCreator;
import org.crandor.game.node.entity.player.ai.general.scriptrepository.ManThiever;
import org.crandor.game.node.entity.player.ai.pvp.PVPAIPActions;
import org.crandor.game.node.entity.player.ai.pvp.PVPAIPBuilderUtils;
import org.crandor.game.node.entity.player.ai.resource.ResourceAIPActions;
@ -25,6 +27,7 @@ import java.util.List;
/**
* Handles the AIPlayer commands.
* These commands are for bots
* @author Emperor
*/
@InitializablePlugin
@ -176,6 +179,14 @@ public final class AIPCommandPlugin extends CommandPlugin {
case "pvpfight":
PVPAIPActions.syncBotThread(player);
return true;
/*
Start regular bots
*/
case "manthiev":
new GeneralBotCreator("Bot", player.getLocation(), new ManThiever());
break;
}
return false;
}