aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Controls
diff options
context:
space:
mode:
authorMichaelTheShifter <[email protected]>2016-06-29 18:36:17 -0400
committerMichaelTheShifter <[email protected]>2016-06-29 18:36:17 -0400
commit20fcece26d3c54d87dd3c66702b71d5c13f05199 (patch)
tree159f5d4396fd688ae1445ca659ad007197d6234c /source/WindowsFormsApplication1/Controls
parentdec9dfac5eebfbfd3a21ba5cfd0ca320cd5f1bfb (diff)
downloadshiftos-c--20fcece26d3c54d87dd3c66702b71d5c13f05199.tar.gz
shiftos-c--20fcece26d3c54d87dd3c66702b71d5c13f05199.tar.bz2
shiftos-c--20fcece26d3c54d87dd3c66702b71d5c13f05199.zip
Stop AI from controlling enemy in online sessions
Also added bidirectional data transfer to online battles so that I can send damage requests to the opponent when needed.
Diffstat (limited to 'source/WindowsFormsApplication1/Controls')
-rw-r--r--source/WindowsFormsApplication1/Controls/Computer.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/WindowsFormsApplication1/Controls/Computer.cs b/source/WindowsFormsApplication1/Controls/Computer.cs
index 1d287f8..ad33a58 100644
--- a/source/WindowsFormsApplication1/Controls/Computer.cs
+++ b/source/WindowsFormsApplication1/Controls/Computer.cs
@@ -168,6 +168,16 @@ namespace ShiftOS
public string Hostname { get; set; }
+ internal void throw_repaired()
+ {
+ OnRepair?.Invoke(this, new EventArgs());
+ }
+
+ internal void throw_damaged()
+ {
+ HP_Decreased?.Invoke(this, new EventArgs());
+ }
+
public event EventHandler HP_Decreased;
public void Deteriorate(int amount)