uberserver
uberserver copied to clipboard
allow autohosts to open multiple battles
it should be possible for bots to open multiple battle at once.
migration path:
- handle battles similar to channels
- distingish battle / channel by channel name, numbers only = battle, name with chars = channel
- in battle, channel owner = host
- battle update commands needs channel name as param
commands needed to be changed:
REMOVESCRIPTTAGS SETSCRIPTTAGS SCRIPTSTART SCRIPTEND ADDSTARTRECT REMOVESTARTRECT UPDATEBOT REMOVEBOT ENABLEUNITS ENABLEALLUNITS DISABLEUNITS FORCESPECTATORMODE FORCEALLYNO FORCETEAMNO KICKFROMBATTLE HANDICAP MYBATTLESTATUS LEAVEBATTLE
...
(ugh, list is larger than i thought)
related to #57
can be easily done after #135 is implemented
n2s, since channels save stuff to db, can't use battle_id for channel name
add the attribute battle_id to channels? :-P
I'm working on making Battle a derived class of Channel!
n2s ideas:
FORCETEAMNO, FORCEALLYNO, FORCETEAMCOLOR, FORCESPECTATORMODE, HANDICAP should be deprecated/combined into a single key=value command e.g. SETUSERBATTLESTATUS
this leaves the following commands needing changes: JOINBATTLE LEAVEBATTLE KICKFROMBATTLE SETSCRIPTTAGS REMOVESCRIPTTAGS ADDBOT UPDATEBOT REMOVEBOT RING plus the following which should probably be subsumed into *SCRIPTTAGS ADDSTARTRECT REMOVESTARTRECT ENABLEUNITS ENABLEALLUNITS DISABLEUNITS
https://github.com/spring/uberserver/pull/282/commits/a1c0e8591fdadeeb5f828803edfc0654c221fc53