-
Notifications
You must be signed in to change notification settings - Fork 266
Code Organization
MyBotRun edited this page Sep 23, 2015
·
1 revision
- Code Organization
Here is an attempt to keep the bot code organized. There is a lot of legacy code and the organization is constantly being improved as we find problems or better ways to structure the code. Here is an outline of the current code directories and the purposes.
Root folder directory list:
Files = GameBot.org.au3, GameBot.org.exe, License,txt, GameBot.org.txt
Folders =
- COCBot - All AutoIt code files for the bot
- Curl - Open source program location used by Pushbullet code to transfer files across devices
- Icons - All the icon images used by Bot that do not exist inside the proprietary DLL
- Images - Hold all the matching images used by the code when searching including; TH, Dead base, walls, CoC error messages
- Lib - Holds the closed source proprietary DLL written by CGB staff. The DLL support faster custom image searching, OCR, and several other key functions that make CGB special.
- Profiles - user configuration files; profile.ini for profile switching and individual folders for the saved user configuration files.
- Templates - Location for saving standard or shared user configurations (future option - not in use yet)
COCBot folder directory: (2nd level of Bot code)
Files = CGB Functions.au3, CGB Global Variables.au3, CGB GUI Control.au3, CGB GUI Design.au3
Folders =
- Functions - Most of the AutoIt code functions
- GUI - All of the GUI Code for the individual tabs. There is one file for the design and one file with active controls or actions when the user interacts with the GUI.
Functions folder directory: (3rd level folder of bot code)
Folders=
- Attack - All the code for attacking (attack algorithms, troop deployment, End battle)
- Config - Code for save/read/apply the GUI data, file of standard screen coordinates, and standard delay times
- ImageSearch - All imaged matching/finding code functions.
- MainScreen - All functions related to managing the normal window or BS when user base is showing
- Other - Miscellaneous general use functions, many called by other functions internally
- Pixels - All functions related to find/search/capture/check single pixel color or location
- Read Text - All functions related to reading text in the various windows
- Search - Functions related to searching for a base to attack based on user selections
- Village - Functions that interact with the users base (troop training, donations, CC request, upgrades, etc)
MyBot.Run @ 2015 - 2020
- Home
- History
- License
- Introduction
- Installation
- FAQ
- Best Coding Practices
- Code Organization
- Defined Functions
- The GUI
- Attack Log
- Attack Coordinates
- Troop Composition
- Search Conditions
- Dead bases detection
- Donate/Request Troops
- Building Upgrades
- Miscellaneous Settings
- PushBullet Notifications
- End of the Battle
- Expert Options
- Statistics Report
- Variables
- Social Media Contacts
- ChangeLog