mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 09:59:07 -07:00
Initial commit
This commit is contained in:
10
src/package_36/class_19.as
Normal file
10
src/package_36/class_19.as
Normal file
@@ -0,0 +1,10 @@
|
||||
package package_36
|
||||
{
|
||||
public interface class_19
|
||||
{
|
||||
function method_297() : Boolean;
|
||||
|
||||
function toString() : String;
|
||||
}
|
||||
}
|
||||
|
||||
12
src/package_36/name_152.as
Normal file
12
src/package_36/name_152.as
Normal file
@@ -0,0 +1,12 @@
|
||||
package package_36
|
||||
{
|
||||
public interface name_152
|
||||
{
|
||||
function init(param1:name_163) : void;
|
||||
|
||||
function method_295(param1:name_442, param2:Object) : void;
|
||||
|
||||
function method_296(param1:name_442) : Object;
|
||||
}
|
||||
}
|
||||
|
||||
21
src/package_36/name_163.as
Normal file
21
src/package_36/name_163.as
Normal file
@@ -0,0 +1,21 @@
|
||||
package package_36
|
||||
{
|
||||
import flash.utils.IDataInput;
|
||||
import flash.utils.IDataOutput;
|
||||
|
||||
public interface name_163
|
||||
{
|
||||
function name_151(param1:class_19, param2:name_152) : void;
|
||||
|
||||
function name_223(param1:Class, param2:name_152) : void;
|
||||
|
||||
function name_448(param1:class_19) : name_152;
|
||||
|
||||
function method_304(param1:Class) : class_19;
|
||||
|
||||
function method_305(param1:IDataOutput, param2:name_442, param3:name_449) : void;
|
||||
|
||||
function method_303(param1:IDataInput, param2:name_442) : Boolean;
|
||||
}
|
||||
}
|
||||
|
||||
109
src/package_36/name_442.as
Normal file
109
src/package_36/name_442.as
Normal file
@@ -0,0 +1,109 @@
|
||||
package package_36
|
||||
{
|
||||
import flash.utils.ByteArray;
|
||||
import flash.utils.IDataInput;
|
||||
import flash.utils.IDataOutput;
|
||||
|
||||
public class name_442
|
||||
{
|
||||
private var var_587:IDataOutput;
|
||||
|
||||
private var var_586:IDataInput;
|
||||
|
||||
private var var_588:name_648;
|
||||
|
||||
public function name_442(output:IDataOutput, input:IDataInput, optionalMap:name_648)
|
||||
{
|
||||
super();
|
||||
this.var_587 = output;
|
||||
this.var_586 = input;
|
||||
this.var_588 = optionalMap;
|
||||
}
|
||||
|
||||
public function get name_483() : IDataOutput
|
||||
{
|
||||
return this.var_587;
|
||||
}
|
||||
|
||||
public function set name_483(value:IDataOutput) : void
|
||||
{
|
||||
this.var_587 = value;
|
||||
}
|
||||
|
||||
public function get reader() : IDataInput
|
||||
{
|
||||
return this.var_586;
|
||||
}
|
||||
|
||||
public function set reader(value:IDataInput) : void
|
||||
{
|
||||
this.var_586 = value;
|
||||
}
|
||||
|
||||
public function get optionalMap() : name_648
|
||||
{
|
||||
return this.var_588;
|
||||
}
|
||||
|
||||
public function set optionalMap(value:name_648) : void
|
||||
{
|
||||
this.var_588 = value;
|
||||
}
|
||||
|
||||
public function toString() : String
|
||||
{
|
||||
var b:int = 0;
|
||||
var c:String = null;
|
||||
var result:String = "";
|
||||
var position:int = int(ByteArray(this.reader).position);
|
||||
result += "\n=== Dump data ===\n";
|
||||
var pos:int = 0;
|
||||
for(var chars:String = ""; Boolean(ByteArray(this.reader).bytesAvailable); )
|
||||
{
|
||||
b = int(this.reader.readByte());
|
||||
c = String.fromCharCode(b);
|
||||
if(b >= 0 && b < 16)
|
||||
{
|
||||
result += "0";
|
||||
}
|
||||
if(b < 0)
|
||||
{
|
||||
b = 256 + b;
|
||||
}
|
||||
result += b.toString(16);
|
||||
result += " ";
|
||||
if(b < 12 && b > 128)
|
||||
{
|
||||
chars += ".";
|
||||
}
|
||||
else
|
||||
{
|
||||
chars += c;
|
||||
}
|
||||
pos++;
|
||||
if(pos > 16)
|
||||
{
|
||||
result += "\t";
|
||||
result += chars;
|
||||
result += "\n";
|
||||
pos = 0;
|
||||
chars = "";
|
||||
}
|
||||
}
|
||||
if(pos != 0)
|
||||
{
|
||||
while(pos < 18)
|
||||
{
|
||||
pos++;
|
||||
result += " ";
|
||||
}
|
||||
result += "\t";
|
||||
result += chars;
|
||||
result += "\n";
|
||||
}
|
||||
ByteArray(this.reader).position = position;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
17
src/package_36/name_449.as
Normal file
17
src/package_36/name_449.as
Normal file
@@ -0,0 +1,17 @@
|
||||
package package_36
|
||||
{
|
||||
public class name_449
|
||||
{
|
||||
public static var NONE:name_449 = new name_449();
|
||||
|
||||
public static var DEFLATE:name_449 = new name_449();
|
||||
|
||||
public static var DEFLATE_AUTO:name_449 = new name_449();
|
||||
|
||||
public function name_449()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
128
src/package_36/name_648.as
Normal file
128
src/package_36/name_648.as
Normal file
@@ -0,0 +1,128 @@
|
||||
package package_36
|
||||
{
|
||||
import flash.utils.ByteArray;
|
||||
|
||||
public class name_648
|
||||
{
|
||||
private var var_671:int;
|
||||
|
||||
private var size:int;
|
||||
|
||||
private var map:ByteArray;
|
||||
|
||||
public function name_648(size:int = 0, source:ByteArray = null)
|
||||
{
|
||||
super();
|
||||
this.map = new ByteArray();
|
||||
if(source != null)
|
||||
{
|
||||
this.map.writeBytes(source,0,this.method_814(size));
|
||||
}
|
||||
this.size = size;
|
||||
this.var_671 = 0;
|
||||
}
|
||||
|
||||
public function method_816() : int
|
||||
{
|
||||
return this.var_671;
|
||||
}
|
||||
|
||||
public function name_702(value:int) : void
|
||||
{
|
||||
this.var_671 = value;
|
||||
}
|
||||
|
||||
public function reset() : void
|
||||
{
|
||||
this.var_671 = 0;
|
||||
}
|
||||
|
||||
public function clear() : void
|
||||
{
|
||||
this.size = 0;
|
||||
this.var_671 = 0;
|
||||
}
|
||||
|
||||
public function name_444(isNull:Boolean) : void
|
||||
{
|
||||
this.name_480(this.size,isNull);
|
||||
++this.size;
|
||||
}
|
||||
|
||||
public function method_815() : Boolean
|
||||
{
|
||||
return this.var_671 < this.size;
|
||||
}
|
||||
|
||||
public function name_447() : Boolean
|
||||
{
|
||||
if(this.var_671 >= this.size)
|
||||
{
|
||||
throw new Error("Index out of bounds: " + this.var_671);
|
||||
}
|
||||
var res:Boolean = this.name_478(this.var_671);
|
||||
++this.var_671;
|
||||
return res;
|
||||
}
|
||||
|
||||
public function name_649() : ByteArray
|
||||
{
|
||||
return this.map;
|
||||
}
|
||||
|
||||
public function name_650() : int
|
||||
{
|
||||
return this.size;
|
||||
}
|
||||
|
||||
private function name_478(position:int) : Boolean
|
||||
{
|
||||
var targetByte:int = position >> 3;
|
||||
var targetBit:int = 7 ^ position & 7;
|
||||
this.map.position = targetByte;
|
||||
return (this.map.readByte() & 1 << targetBit) != 0;
|
||||
}
|
||||
|
||||
private function name_480(position:int, value:Boolean) : void
|
||||
{
|
||||
var targetByte:int = position >> 3;
|
||||
var targetBit:int = 7 ^ position & 7;
|
||||
this.map.position = targetByte;
|
||||
if(value)
|
||||
{
|
||||
this.map.writeByte(int(this.map[targetByte] | 1 << targetBit));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.map.writeByte(int(this.map[targetByte] & (0xFF ^ 1 << targetBit)));
|
||||
}
|
||||
}
|
||||
|
||||
private function method_814(sizeInBits:int) : int
|
||||
{
|
||||
var i:int = sizeInBits >> 3;
|
||||
var add:int = (sizeInBits & 7) == 0 ? 0 : 1;
|
||||
return i + add;
|
||||
}
|
||||
|
||||
public function toString() : String
|
||||
{
|
||||
var result:String = "readPosition: " + this.var_671 + " size:" + this.name_650() + " mask:";
|
||||
var _readPosition:int = this.var_671;
|
||||
for(var i:int = this.var_671; i < this.name_650(); i++)
|
||||
{
|
||||
result += this.name_447() ? "1" : "0";
|
||||
}
|
||||
this.var_671 = _readPosition;
|
||||
return result;
|
||||
}
|
||||
|
||||
public function clone() : name_648
|
||||
{
|
||||
var map:name_648 = new name_648(this.size,this.map);
|
||||
map.var_671 = this.var_671;
|
||||
return map;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user