From 20fcece26d3c54d87dd3c66702b71d5c13f05199 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Wed, 29 Jun 2016 18:36:17 -0400 Subject: 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. --- source/WindowsFormsApplication1/Controls/Computer.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/WindowsFormsApplication1/Controls/Computer.cs') 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) -- cgit v1.2.3