Documentation ¶
Index ¶
- func GetCharacterClass(characterClassStr string) ogame.CharacterClass
- type Extractor
- func (e *Extractor) ExtractActiveItems(pageHTML []byte) ([]ogame.ActiveItem, error)
- func (e *Extractor) ExtractActiveItemsFromDoc(doc *goquery.Document) ([]ogame.ActiveItem, error)
- func (e *Extractor) ExtractAllResources(pageHTML []byte) (map[ogame.CelestialID]ogame.Resources, error)
- func (e *Extractor) ExtractAttacks(pageHTML []byte, ownCoords []ogame.Coordinate) ([]ogame.AttackEvent, error)
- func (e *Extractor) ExtractAttacksFromDoc(doc *goquery.Document, ownCoords []ogame.Coordinate) ([]ogame.AttackEvent, error)
- func (e *Extractor) ExtractBuffActivation(pageHTML []byte) (string, []ogame.Item, error)
- func (e *Extractor) ExtractBuffActivationFromDoc(doc *goquery.Document) (string, []ogame.Item, error)
- func (e *Extractor) ExtractCancelFleetToken(pageHTML []byte, fleetID ogame.FleetID) (string, error)
- func (e *Extractor) ExtractCancelFleetTokenFromDoc(doc *goquery.Document, fleetID ogame.FleetID) (string, error)
- func (e *Extractor) ExtractDMCosts(pageHTML []byte) (ogame.DMCosts, error)
- func (e *Extractor) ExtractDMCostsFromDoc(doc *goquery.Document) (ogame.DMCosts, error)
- func (e *Extractor) ExtractDestroyRockets(pageHTML []byte) (abm, ipm int64, token string, err error)
- func (e *Extractor) ExtractDestroyRocketsFromDoc(doc *goquery.Document) (abm, ipm int64, token string, err error)
- func (e *Extractor) ExtractEspionageReport(pageHTML []byte) (ogame.EspionageReport, error)
- func (e *Extractor) ExtractEspionageReportFromDoc(doc *goquery.Document) (ogame.EspionageReport, error)
- func (e *Extractor) ExtractFacilities(pageHTML []byte) (ogame.Facilities, error)
- func (e *Extractor) ExtractFacilitiesFromDoc(doc *goquery.Document) (ogame.Facilities, error)
- func (e *Extractor) ExtractHighscore(pageHTML []byte) (ogame.Highscore, error)
- func (e *Extractor) ExtractHighscoreFromDoc(doc *goquery.Document) (ogame.Highscore, error)
- func (e *Extractor) ExtractIPM(pageHTML []byte) (duration int64, max int64, token string)
- func (e *Extractor) ExtractIPMFromDoc(doc *goquery.Document) (duration int64, max int64, token string)
- func (e *Extractor) ExtractIsMobile(pageHTML []byte) bool
- func (e *Extractor) ExtractIsMobileFromDoc(doc *goquery.Document) bool
- func (e *Extractor) ExtractProduction(pageHTML []byte) ([]ogame.Quantifiable, int64, error)
- func (e *Extractor) ExtractProductionFromDoc(doc *goquery.Document) ([]ogame.Quantifiable, error)
- func (e *Extractor) ExtractResourcesDetails(pageHTML []byte) (out ogame.ResourcesDetails, err error)
- func (e *Extractor) ExtractTechs(pageHTML []byte) (ogame.ResourcesBuildings, ogame.Facilities, ogame.ShipsInfos, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCharacterClass ¶
func GetCharacterClass(characterClassStr string) ogame.CharacterClass
ar, Argentina -> Recolector, General, Descubridor ba, Balkan -> Sakupljač, General, Otkrivač br, Brasil -> Coletor, General, Descobridor dk, Danmark -> Samleren, Generalen, Opdageren de, Deutschland -> Kollektor, General, Entdecker es, España -> Recolector, General, Descubridor fr, France -> Le collecteur, Général, L`explorateur hr, Hrvatska -> Sakupljač, General, Otkrivač it, Italia -> Collezionista, Generale, Esploratore hu, Magyarország -> Gyűjtő, Tábornok, Felfedező mx, México -> Recolector, General, Descubridor nl, Netherlands -> Verzamelaar, Generaal, Ontdekker no, Norge -> Collector, General, Discoverer (no i18n) pl, Polska -> Zbieracz, Generał, Odkrywca pt, Portugal -> Colecionador, General, Descobridor ro, Romania -> Colecționarul, General, Exploratorul si, Slovenija -> Zbiralec, Splošno, Odkritelj sk, Slovensko -> Zberateľ, Generál, Objaviteľ fi, Suomi -> Keräilijä, Komentaja, Löytäjä se, Sverige -> Samlare, General, Upptäckare tr, Türkiye -> Koleksiyoncu, General, Kaşif us, USA -> Collector, General, Discoverer en, United Kingdom -> Collector, General, Discoverer cz, Če Republika -> Sběratel, Generál, Průzkumník gr, Ελλάδα -> Συλλέκτης, Στρατηγός, Εξερευνητής ru, Российс Федерация -> Коллекционер, Генерал, Исследователь tw, 台灣 -> 採礦師, 將軍, 探險家 jp, 日本 -> 回収船, 将軍, 探索船
Types ¶
type Extractor ¶
Extractor ...
func (*Extractor) ExtractActiveItems ¶
func (e *Extractor) ExtractActiveItems(pageHTML []byte) ([]ogame.ActiveItem, error)
ExtractActiveItems ...
func (*Extractor) ExtractActiveItemsFromDoc ¶
ExtractActiveItemsFromDoc ...
func (*Extractor) ExtractAllResources ¶
func (e *Extractor) ExtractAllResources(pageHTML []byte) (map[ogame.CelestialID]ogame.Resources, error)
ExtractAllResources ...
func (*Extractor) ExtractAttacks ¶
func (e *Extractor) ExtractAttacks(pageHTML []byte, ownCoords []ogame.Coordinate) ([]ogame.AttackEvent, error)
ExtractAttacks ...
func (*Extractor) ExtractAttacksFromDoc ¶
func (e *Extractor) ExtractAttacksFromDoc(doc *goquery.Document, ownCoords []ogame.Coordinate) ([]ogame.AttackEvent, error)
ExtractAttacksFromDoc ...
func (*Extractor) ExtractBuffActivation ¶
ExtractBuffActivation ...
func (*Extractor) ExtractBuffActivationFromDoc ¶
func (e *Extractor) ExtractBuffActivationFromDoc(doc *goquery.Document) (string, []ogame.Item, error)
ExtractBuffActivationFromDoc ...
func (*Extractor) ExtractCancelFleetToken ¶
ExtractCancelFleetToken ...
func (*Extractor) ExtractCancelFleetTokenFromDoc ¶
func (e *Extractor) ExtractCancelFleetTokenFromDoc(doc *goquery.Document, fleetID ogame.FleetID) (string, error)
ExtractCancelFleetTokenFromDoc ...
func (*Extractor) ExtractDMCosts ¶
ExtractDMCosts ...
func (*Extractor) ExtractDMCostsFromDoc ¶
ExtractDMCostsFromDoc ...
func (*Extractor) ExtractDestroyRockets ¶
func (e *Extractor) ExtractDestroyRockets(pageHTML []byte) (abm, ipm int64, token string, err error)
ExtractDestroyRockets ...
func (*Extractor) ExtractDestroyRocketsFromDoc ¶
func (e *Extractor) ExtractDestroyRocketsFromDoc(doc *goquery.Document) (abm, ipm int64, token string, err error)
ExtractDestroyRocketsFromDoc ...
func (*Extractor) ExtractEspionageReport ¶
func (e *Extractor) ExtractEspionageReport(pageHTML []byte) (ogame.EspionageReport, error)
ExtractEspionageReport ...
func (*Extractor) ExtractEspionageReportFromDoc ¶
func (e *Extractor) ExtractEspionageReportFromDoc(doc *goquery.Document) (ogame.EspionageReport, error)
ExtractEspionageReportFromDoc ...
func (*Extractor) ExtractFacilities ¶
func (e *Extractor) ExtractFacilities(pageHTML []byte) (ogame.Facilities, error)
ExtractFacilities ...
func (*Extractor) ExtractFacilitiesFromDoc ¶
ExtractFacilitiesFromDoc ...
func (*Extractor) ExtractHighscore ¶
ExtractHighscore ...
func (*Extractor) ExtractHighscoreFromDoc ¶
ExtractHighscoreFromDoc ...
func (*Extractor) ExtractIPM ¶
ExtractIPM ...
func (*Extractor) ExtractIPMFromDoc ¶
func (e *Extractor) ExtractIPMFromDoc(doc *goquery.Document) (duration int64, max int64, token string)
ExtractIPMFromDoc ...
func (*Extractor) ExtractIsMobile ¶
ExtractIsMobile ...
func (*Extractor) ExtractIsMobileFromDoc ¶
ExtractIsMobileFromDoc ...
func (*Extractor) ExtractProduction ¶
ExtractProduction extracts ships/defenses production from the shipyard page
func (*Extractor) ExtractProductionFromDoc ¶
ExtractProductionFromDoc extracts ships/defenses production from the shipyard page
func (*Extractor) ExtractResourcesDetails ¶
func (e *Extractor) ExtractResourcesDetails(pageHTML []byte) (out ogame.ResourcesDetails, err error)
ExtractResourcesDetails ...
func (*Extractor) ExtractTechs ¶
func (e *Extractor) ExtractTechs(pageHTML []byte) (ogame.ResourcesBuildings, ogame.Facilities, ogame.ShipsInfos, ogame.DefensesInfos, ogame.Researches, ogame.LfBuildings, error)
ExtractTechs ...