forked from Mizzion/SDV-Starbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Objective.cs
42 lines (32 loc) · 985 Bytes
/
Objective.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Starbot
{
public abstract class Objective
{
//once this returns true, the bot will look for a new objective, or sleep if there aren't any.
public virtual bool IsComplete { get; set; }
//if a task fails 3 times it will be removed from the day's agenda
public virtual int FailureCount { get; set; }
public abstract string AnnounceMessage { get; }
public abstract string UniquePoolId { get; }
public abstract bool Cooperative { get; }
public virtual void Fail()
{
FailureCount++;
Reset();
}
public virtual void Reset()
{
}
//called whenever the bot is "bored" until IsComplete is true
public virtual void Step()
{
}
public virtual void CantMoveUpdate() {
}
}
}