diff options
| author | MichaelTheShifter <[email protected]> | 2016-06-29 18:36:17 -0400 |
|---|---|---|
| committer | MichaelTheShifter <[email protected]> | 2016-06-29 18:36:17 -0400 |
| commit | 20fcece26d3c54d87dd3c66702b71d5c13f05199 (patch) | |
| tree | 159f5d4396fd688ae1445ca659ad007197d6234c /source/WindowsFormsApplication1/Controls | |
| parent | dec9dfac5eebfbfd3a21ba5cfd0ca320cd5f1bfb (diff) | |
| download | shiftos-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.cs | 10 |
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) |
