Class EresseaOrderCompleter

  • All Implemented Interfaces:
    Completer
    Direct Known Subclasses:
    AllanonOrderCompleter, E3AOrderCompleter

    public class EresseaOrderCompleter
    extends AbstractOrderCompleter
    A class for offering possible completions on incomplete orders. This class relies on the OrderParser for reading input which calls the cmpltX methods of this class when it encounters an incomplete order and has a OrderCompleter object registered. A OrderCompleter wraps itself around a OrderParser so you do not get involved with any of the cmpltX methods. They are solely called by the internal OrderParser.
    • Constructor Detail

      • EresseaOrderCompleter

        public EresseaOrderCompleter​(GameData gd,
                                     CompleterSettingsProvider ac)
        Creates a new EresseaOrderCompleter taking context information from the specified GameData object.
        Parameters:
        gd - The GameData this completer uses as context.
    • Method Detail

      • cmplt

        protected void cmplt()
        Description copied from class: AbstractOrderCompleter
        Called to produce the basic completions when token has been read. Adds completions for user-defined commands.
        Overrides:
        cmplt in class AbstractOrderCompleter
      • cmpltAttack

        public void cmpltAttack()
        Add completions for command Attack.
      • cmpltBeklaue

        public void cmpltBeklaue()
        Add completions for command Beklaue.
      • cmpltBelagere

        public void cmpltBelagere()
        Add completions for command Belagere.
      • cmpltBenenne

        public void cmpltBenenne()
        Add completions for command Benenne.
      • cmpltBenenneFremdes

        public void cmpltBenenneFremdes​(OrderToken token)
        Add completions for command BenenneFremdes.
      • cmpltBenenneFremdeEinheit

        public void cmpltBenenneFremdeEinheit()
        Add completions for command BenenneFremdeEinheit.
      • cmpltBenenneFremdesGebaeude

        public void cmpltBenenneFremdesGebaeude()
        Add completions for command BenenneFremdesGebaeude.
      • cmpltBenenneFremdePartei

        public void cmpltBenenneFremdePartei()
        Add completions for command BenenneFremdePartei.
      • cmpltBenenneFremdesSchiff

        public void cmpltBenenneFremdesSchiff()
        Add completions for command BenenneFremdesSchiff.
      • cmpltBewache

        public void cmpltBewache()
        Add completions for command BEWACHE.
      • cmpltBenutze

        public void cmpltBenutze​(int amount)
        Add completions for command Benutze.
      • cmpltBeanspruche

        public void cmpltBeanspruche()
        Add completions for command Beanspruche.
      • cmpltBeschreibe

        public void cmpltBeschreibe()
        Add completions for command Beschreibe.
      • cmpltBetrete

        public void cmpltBetrete()
        Add completions for command Betrete.
      • cmpltBetreteBurg

        public void cmpltBetreteBurg()
        Add completions for command BetreteBurg.
      • cmpltBetreteSchiff

        public void cmpltBetreteSchiff()
        Add completions for command BetreteSchiff.
      • cmpltBezahle

        public void cmpltBezahle()
      • cmpltBezahleNicht

        public void cmpltBezahleNicht()
      • cmpltBotschaft

        public void cmpltBotschaft()
        Add completions for command Botschaft.
      • cmpltBotschaftEinheit

        public void cmpltBotschaftEinheit​(boolean omitTemp)
        Add completions for command BotschaftEinheit.
      • cmpltBotschaftPartei

        public void cmpltBotschaftPartei()
        Add completions for command BotschaftPartei.
      • cmpltBotschaftGebaeude

        public void cmpltBotschaftGebaeude()
        Add completions for command BotschaftGebaeude.
      • cmpltBotschaftGebaeudeID

        public void cmpltBotschaftGebaeudeID()
        Add completions for command BotschaftGebaeudeID.
      • cmpltBotschaftSchiff

        public void cmpltBotschaftSchiff()
        Add completions for command BotschaftSchiff.
      • cmpltBotschaftSchiffID

        public void cmpltBotschaftSchiffID()
        Add completions for command BotschaftSchiffID.
      • cmpltFahre

        public void cmpltFahre​(boolean omitTemp)
        Add completions for command Fahre.
      • cmpltFolge

        public void cmpltFolge()
        Add completions for command Folge.
      • cmpltFolgeEinheit

        public void cmpltFolgeEinheit​(boolean omitTemp)
        Add completions for command FolgeEinheit.
      • cmpltFolgeSchiff

        public void cmpltFolgeSchiff()
        Add completions for command FolgeSchiff.
      • cmpltForsche

        public void cmpltForsche()
        Add completions for command Forsche.
      • cmpltGruppe

        public void cmpltGruppe()
        Add completions for command Gruppe.
      • cmpltGib

        public void cmpltGib()
        Add completions for command Gib.
      • cmpltGibUID

        public void cmpltGibUID​(boolean omitTemp)
        Add completions for command GibUID.
      • cmpltGibJe

        public void cmpltGibJe()
        Add completions for command GibJe.
      • cmpltGibUIDAmount

        public void cmpltGibUIDAmount​(UnitID uid,
                                      int i,
                                      boolean persons)
        Add completions for command GibUIDAmount.
      • cmpltGibUIDAmount

        public void cmpltGibUIDAmount()
        Add completions for command GibUIDAmount.
      • cmpltGibUIDAlles

        public void cmpltGibUIDAlles()
        Add completions for command GibUIDAlles.
      • cmpltHelfe

        public void cmpltHelfe()
        Add completions for command Helfe.
      • cmpltHelfeFID

        public void cmpltHelfeFID()
        Add completions for command HelfeFID.
      • cmpltHelfeFIDModifier

        public void cmpltHelfeFIDModifier()
        Add completions for command HelfeFIDModifier.
      • cmpltKaempfe

        public void cmpltKaempfe()
        Add completions for command Kaempfe.
      • cmpltKaempfeHelfe

        public void cmpltKaempfeHelfe()
        Add completions for command KaempfeHelfe.
      • cmpltKaufe

        public void cmpltKaufe()
        Add completions for command Kaufe.
      • cmpltKaufeAmount

        public void cmpltKaufeAmount()
        Add completions for command KaufeAmount.
      • cmpltKampfzauber

        public void cmpltKampfzauber​(boolean modifiers,
                                     java.lang.String opening,
                                     java.lang.String closing)
        Add completions for command Kampfzauber.
      • cmpltKampfzauberSpell

        public void cmpltKampfzauberSpell()
        Add completions for command KampfzauberSpell.
      • cmpltKontaktiere

        public void cmpltKontaktiere()
        Add completions for command Kontaktiere.
      • cmpltLehre

        public void cmpltLehre​(boolean omitTemp)
        Add completions for command Lehre.
      • cmpltLerne

        public void cmpltLerne()
        Add completions for command Lerne.
      • cmpltLerneTalent

        public void cmpltLerneTalent​(SkillType t)
        Add completions for command LerneTalent.
      • getSkillCost

        public int getSkillCost​(SkillType skillType,
                                Unit someUnit)
        Returns the learn cost for a specific skill.
        Overrides:
        getSkillCost in class AbstractOrderCompleter
        Parameters:
        skillType - the skill to be learned
        Returns:
        the cost to learn a skill for the given unit. If the unit has no persons the cost for one person is returned.
      • cmpltLiefere

        public void cmpltLiefere()
        Add completions for command Liefere.
      • cmpltLocale

        public void cmpltLocale()
        Add completions for command Locale.
      • cmpltMache

        public void cmpltMache()
        Add completions for command Mache.
      • cmpltMacheAmount

        public void cmpltMacheAmount()
        Add completions for command MacheAmount.
      • cmpltMacheTemp

        public void cmpltMacheTemp()
        Add completions for command MacheTemp.
      • cmpltMacheTempID

        public void cmpltMacheTempID()
        Add completions for command MacheTempID.
      • cmpltMacheBurg

        public void cmpltMacheBurg()
        Add completions for command MacheBurg.
      • cmpltMacheBuilding

        public void cmpltMacheBuilding​(java.lang.String typeName)
        Add completions for command MacheBuilding.
      • cmpltMacheSchiff

        public void cmpltMacheSchiff()
        Add completions for command MacheSchiff.
      • cmpltMacheStrasse

        public void cmpltMacheStrasse()
        Add completions for command MacheStrasse.
      • cmpltNach

        public void cmpltNach()
        Add completions for command Nach.
      • cmpltNachDirection

        public void cmpltNachDirection()
        Add completions for command NachDirection.
      • cmpltNeustart

        public void cmpltNeustart()
        Add completions for command Neustart.
      • cmpltNummer

        public void cmpltNummer()
        Add completions for command Nummer.
      • cmpltNummerId

        public void cmpltNummerId()
        add completions for command NUMMER EINHEIT/BUILDING/SHIP ...
      • cmpltOption

        public void cmpltOption()
        Add completions for command Option.
      • cmpltOptionOption

        public void cmpltOptionOption()
        Add completions for command OptionOption.
      • cmpltPflanze

        public void cmpltPflanze()
        Add completions for command Pflanze.
      • cmpltPflanze

        public void cmpltPflanze​(int minAmount)
        Add completions for command Pflanze.
      • cmpltPiraterie

        public void cmpltPiraterie()
        Add completions for command Piraterie.
      • cmpltPiraterieFID

        public void cmpltPiraterieFID()
        Add completions for command PiraterieFID.
      • cmpltPraefix

        public void cmpltPraefix()
        Add completions for command Praefix.
      • cmpltRekrutiere

        public void cmpltRekrutiere()
        Add completions for command Rekrutiere.
      • cmpltReserviere

        public void cmpltReserviere()
        Add completions for command Reserviere.
      • cmpltReserviereJe

        public void cmpltReserviereJe()
        Add completions for command ReserviereJe.
      • cmpltReserviereAmount

        public void cmpltReserviereAmount()
        Add completions for command ReserviereAmount.
      • getMaterialPool

        protected boolean getMaterialPool()
      • getSilverPool

        protected boolean getSilverPool()
      • cmpltRoute

        public void cmpltRoute()
        Add completions for command Route.
      • cmpltRouteDirection

        public void cmpltRouteDirection()
        Add completions for command RouteDirection.
      • cmpltSabotiere

        public void cmpltSabotiere()
        Add completions for command Sabotiere.
      • cmpltSortiere

        public void cmpltSortiere()
        Add completions for command Sortiere.
      • cmpltSortiereVor

        public void cmpltSortiereVor()
        Add completions for command SortiereVor.
      • cmpltSortiereHinter

        public void cmpltSortiereHinter()
        Add completions for command SortiereHinter.
      • cmpltSpioniere

        public void cmpltSpioniere()
        Add completions for command Spioniere.
      • cmpltStirb

        public void cmpltStirb()
        Add completions for command Stirb.
      • cmpltTarne

        public void cmpltTarne​(boolean quoted)
        Add completions for command Tarne.
      • cmpltTarnePartei

        public void cmpltTarnePartei()
        Add completions for command TarnePartei.
      • cmpltTarneParteiNummer

        public void cmpltTarneParteiNummer()
        Add completions for command TarneParteiNummer.
      • cmpltTransportiere

        public void cmpltTransportiere​(boolean omitTemp)
        Add completions for command Transportiere.
      • cmpltVergesse

        public void cmpltVergesse()
        Add completions for command Vergesse.
      • cmpltVerkaufe

        public void cmpltVerkaufe()
        Add completions for command Verkaufe.
      • cmpltVerkaufeAmount

        public void cmpltVerkaufeAmount()
        Add completions for command VerkaufeAmount.
      • cmpltVerkaufeAlles

        public void cmpltVerkaufeAlles()
        Add completions for command VerkaufeAlles.
      • cmpltZaubere

        public void cmpltZaubere​(boolean far,
                                 boolean combat,
                                 boolean addRegion,
                                 boolean addLevel,
                                 java.lang.String opening,
                                 java.lang.String closing)
        Add completions for command Zaubere.
      • cmpltZaubereStufe

        public void cmpltZaubereStufe()
        Add completions for command ZaubereStufe.
      • cmpltZaubereRegion

        public void cmpltZaubereRegion()
        Add completions for command ZaubereRegion.
      • cmpltZaubereRegionStufe

        public void cmpltZaubereRegionStufe()
        Add completions for command ZaubereRegionStufe.
      • cmpltZaubereSpruch

        public void cmpltZaubereSpruch​(Spell spell)
        Add completions for command ZaubereSpruch.
      • cmpltZeige

        public void cmpltZeige()
        Add completions for command Zeige.
      • cmpltZeigeAlle

        public void cmpltZeigeAlle()
        Add completions for command ZeigeAlle.
      • cmpltZerstoere

        public void cmpltZerstoere()
        Add completions for command Zerstoere.
      • cmpltZerstoereStrasse

        public void cmpltZerstoereStrasse()
        Add completions for command ZerstoereStrasse.
      • cmpltZuechte

        public void cmpltZuechte()
        Add completions for command Zuechte.
      • isLimitCompletions

        protected boolean isLimitCompletions()