Documentation ¶
Index ¶
- Constants
- type Algo
- func (a *Algo) ActiveCaptureFlag(Flag string) (ok bool, err error)
- func (a *Algo) ActiveShellCode(targetID string, shellcode string) (ok bool, err error)
- func (a *Algo) CaptureCellData(celluleID int, index int) (ok bool, err error)
- func (a *Algo) CaptureCellEnergy(celluleID int, index int) (ok bool, err error)
- func (a *Algo) CaptureTargetData(celluleID int, targetID string) (ok bool, err error)
- func (a *Algo) CaptureTargetEnergy(celluleID int, targetID string) (ok bool, err error)
- func (a *Algo) CleanLog(celluleID int) (err error)
- func (a *Algo) CleanLogAll() (err error)
- func (a *Algo) Destroy(celluleID int, targetID string, energy int) (ok bool, res []byte, err error)
- func (a *Algo) DestroyZone(celluleID int, energy int) (ok bool, res []byte, err error)
- func (a *Algo) Equilibrium() (ok bool, err error)
- func (a *Algo) EstimateMove(secteurID string, zoneID string) (data structure.MoveEstimateData, err error)
- func (a *Algo) ExplorationStop() (ok bool, err error)
- func (a *Algo) Explore(celluleID int) (ok bool, res []byte, err error)
- func (a *Algo) GetInfosProgramme() (ok bool, err error)
- func (a *Algo) GetLog(celluleID int) (celluleLogs map[int]structure.CelluleLog, err error)
- func (a *Algo) GetProgramme() (ok bool, programmes []string)
- func (a *Algo) GetStatusGrid() (err error)
- func (a *Algo) GetZoneinfos() (ok bool, zoneInfos structure.ZoneInfos)
- func (a *Algo) InfosProgShellCode(targetID string, shellcode string) (ok bool, programmeInfos structure.ProgrammeInfos, err error)
- func (a *Algo) LoadProgramme(blue bool) (ok bool, err error)
- func (a *Algo) Move(secteurID string, zoneID string) (ok bool, err error)
- func (a *Algo) NavigationStop() (ok bool, err error)
- func (a *Algo) PrintInfo(printGrid bool)
- func (a *Algo) PushFlag() (ok bool, err error)
- func (a *Algo) QuickMove(secteurID string, zoneID string) (ok bool, err error)
- func (a *Algo) Rebuild(celluleID int, targetID string, energy int) (ok bool, res []byte, err error)
- func (a *Algo) Scan() (ok bool, res []byte, err error)
- func (a *Algo) SearchEnergy(cellules []structure.CelluleInfos) (index int)
- func (a *Algo) SearchFlag(cellules []structure.CelluleInfos) (flagFound bool)
- func (a *Algo) ShellCode() (ok bool, data []structure.ShellcodeData, err error)
- func (a *Algo) StopMove() (ok bool, err error)
Constants ¶
View Source
const ( TIME_MILLISECONDE = 5000 ENERGY_MAX_ATTACK = 10 MAX_CELLULES = 4 MAX_VALEUR = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algo ¶
type Algo struct { Name string ApiUrl string ID string Pc structure.ProgrammeContainer InfosGrid structure.GridInfos Psi structure.ProgrammeStatusInfos StatusCode int }
func (*Algo) ActiveShellCode ¶
func (*Algo) CaptureCellData ¶
func (*Algo) CaptureCellEnergy ¶
func (*Algo) CaptureTargetData ¶
func (*Algo) CaptureTargetEnergy ¶
func (*Algo) CleanLogAll ¶
func (*Algo) DestroyZone ¶
func (*Algo) Equilibrium ¶
func (*Algo) EstimateMove ¶
func (*Algo) ExplorationStop ¶
func (*Algo) GetInfosProgramme ¶
func (*Algo) GetProgramme ¶
func (*Algo) GetStatusGrid ¶
func (*Algo) InfosProgShellCode ¶
func (*Algo) NavigationStop ¶
func (*Algo) SearchEnergy ¶
func (a *Algo) SearchEnergy(cellules []structure.CelluleInfos) (index int)
func (*Algo) SearchFlag ¶
func (a *Algo) SearchFlag(cellules []structure.CelluleInfos) (flagFound bool)
Click to show internal directories.
Click to hide internal directories.