예제 #1
0
 def __init__(self, protocol):
     self.protocol = protocol
     self.control_points = self.make_control_points()
     self.state_loader = loaders.TCState()
예제 #2
0
position_data = loaders.PositionData()
restock = loaders.Restock()
create_player = loaders.CreatePlayer()
intel_pickup = loaders.IntelPickup()
intel_capture = loaders.IntelCapture()
intel_drop = loaders.IntelDrop()
player_left = loaders.PlayerLeft()
set_hp = loaders.SetHP()
existing_player = loaders.ExistingPlayer()
kill_action = loaders.KillAction()
chat_message = loaders.ChatMessage()
map_data = loaders.MapChunk()
map_start = loaders.MapStart()
state_data = loaders.StateData()
ctf_data = loaders.CTFState()
tc_data = loaders.TCState()
change_weapon = loaders.ChangeWeapon()
weapon_reload = loaders.WeaponReload()
handshake_init = loaders.HandShakeInit()
version_request = loaders.VersionRequest()


def check_nan(*values):
    for value in values:
        if math.isnan(value):
            return True
    return False

def parse_command(value):
    try:
        splitted = shlex.split(value)
예제 #3
0
 def __init__(self, protocol):
     self.protocol = protocol
     self.state_loader = loaders.TCState()