Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from codesidian/object-and-flow-change
Browse files Browse the repository at this point in the history
improvement: Apply new object and flow changes
  • Loading branch information
jackbayliss authored Feb 7, 2020
2 parents 3e0755d + e2ca483 commit bc00f85
Show file tree
Hide file tree
Showing 7 changed files with 286 additions and 106 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.formatting.provider": "black"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**A small bot for the game missionchief written in Python, automatically reads the missions requirements and tries to despatch the required vehicles accordingly.**

**This bot only works with a vanilla / default account, so don't expect it to work with custom callsigns - Just yet.**
**This bot is meant for use with standard Chrome, please do not use any MissionChief mods, such as LSS manager.**


## How to use
Expand Down
Binary file modified chromedriver.exe
Binary file not shown.
15 changes: 15 additions & 0 deletions despatch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class Despatch:
#ID - Mission ID (String)
#vehicles - List of vehicle ID's sent to mission
#remSec - Remaining time in seconds
def __init__(self, ID,vehicles, remSec):
self.ID = ID
self.vehicles = vehicles
self.remSec = remSec

def getID(self):
return self.ID
def getVehicles(self):
return self.vehicles
def __eq__(self, other):
return self.ID == other.ID
24 changes: 24 additions & 0 deletions mission.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class Mission:
#ID - Mission ID (String)
#name - Mission Name (String)
#requirements - Mission Requirements (list)
#status - Mission Status (int)
def __init__(self, ID,name,requirements,status=0):
self.name = name
self.ID = ID
self.requirements = requirements
self.status=status


def getName(self):
return self.name
def getID(self):
return self.ID
def getStatus(self):
return self.status
def setStatus(self, status):
self.status = status
def getRequirements(self):
return self.requirements
def __eq__(self, other):
return self.ID == other.ID
Loading

0 comments on commit bc00f85

Please sign in to comment.