Advertisement
Guest User

Untitled

a guest
May 20th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. //_-0aL.Update
  2.  
  3. package _-0aL{
  4. import __AS3__.vec.Vector;
  5. import _-ZF._-04B;
  6. import _-ZF._-1-2;
  7. import com.company.assembleegameclient.util._-0uU;
  8. import flash.utils.IDataInput;
  9. import __AS3__.vec.*;
  10.  
  11. public class Update extends _-0hX {
  12.  
  13. public var tiles_:Vector.<_-04B>;
  14. public var newObjs_:Vector.<_-1-2>;
  15. public var drops_:Vector.<int>;
  16.  
  17. public function Update(_arg1:uint, _arg2:Function){
  18. this.tiles_ = new Vector.<_-04B>();
  19. this.newObjs_ = new Vector.<_-1-2>();
  20. this.drops_ = new Vector.<int>();
  21. super(_arg1, _arg2);
  22. }
  23. override public function parseFromInput(_arg1:IDataInput):void{
  24. var _local2:int;
  25. var _local3:int = _arg1.readShort();
  26. _local2 = _local3;
  27. while (_local2 < this.tiles_.length) {
  28. _-0uU._-eP(this.tiles_[_local2]);
  29. _local2++;
  30. };
  31. this.tiles_.length = Math.min(_local3, this.tiles_.length);
  32. while (this.tiles_.length < _local3) {
  33. this.tiles_.push((_-0uU._-yX(_-04B) as _-04B));
  34. };
  35. _local2 = 0;
  36. while (_local2 < _local3) {
  37. this.tiles_[_local2].parseFromInput(_arg1);
  38. _local2++;
  39. };
  40. this.newObjs_.length = 0;
  41. _local3 = _arg1.readShort();
  42. _local2 = _local3;
  43. while (_local2 < this.newObjs_.length) {
  44. _-0uU._-eP(this.newObjs_[_local2]);
  45. _local2++;
  46. };
  47. this.newObjs_.length = Math.min(_local3, this.newObjs_.length);
  48. while (this.newObjs_.length < _local3) {
  49. this.newObjs_.push((_-0uU._-yX(_-1-2) as _-1-2));
  50. };
  51. _local2 = 0;
  52. while (_local2 < _local3) {
  53. this.newObjs_[_local2].parseFromInput(_arg1);
  54. _local2++;
  55. };
  56. this.drops_.length = 0;
  57. var _local4:int = _arg1.readShort();
  58. _local2 = 0;
  59. while (_local2 < _local4) {
  60. this.drops_.push(_arg1.readInt());
  61. _local2++;
  62. };
  63. }
  64. override public function toString():String{
  65. return (formatToString("UPDATE", "tiles_", "newObjs_", "drops_"));
  66. }
  67.  
  68. }
  69.  
  70.  
  71. //------------------------------------------------------------
  72. //_-ZF._-04B
  73.  
  74. package _-ZF{
  75. import flash.utils.IDataInput;
  76.  
  77. public class _-04B {
  78.  
  79. public var x_:int;
  80. public var y_:int;
  81. public var type_:uint;
  82.  
  83. public function parseFromInput(_arg1:IDataInput):void{
  84. this.x_ = _arg1.readShort();
  85. this.y_ = _arg1.readShort();
  86. this.type_ = _arg1.readShort();
  87. }
  88. public function toString():String{
  89. return (((((("x_: " + this.x_) + " y_: ") + this.y_) + " type_:") + this.type_));
  90. }
  91.  
  92. }
  93. }//package _-ZF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement