Esempio n. 1
0
void FlxReplay_obj::load(::String FileContents){
            	HX_STACK_FRAME("flixel.system.replay.FlxReplay","load",0x9870e395,"flixel.system.replay.FlxReplay.load","flixel/system/replay/FlxReplay.hx",96,0xb378fa20)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(FileContents,"FileContents")
HXLINE(  97)		this->init();
HXLINE(  99)		HX_VARI( ::Array< ::String >,lines) = FileContents.split(HX_("\n",0a,00,00,00));
HXLINE( 101)		::String _hx_tmp = lines->__get((int)0);
HXDLIN( 101)		this->seed = ::Std_obj::parseInt(_hx_tmp);
HXLINE( 103)		HX_VAR( ::String,line);
HXLINE( 104)		HX_VARI( Int,i) = (int)1;
HXLINE( 105)		HX_VARI( Int,l) = lines->length;
HXLINE( 106)		while((i < l)){
HXLINE( 108)			Int _hx_tmp1 = i++;
HXDLIN( 108)			line = lines->__get(_hx_tmp1);
HXLINE( 109)			Bool _hx_tmp2 = (line.length > (int)3);
HXDLIN( 109)			if (_hx_tmp2) {
HXLINE( 111)				Int _hx_tmp3 = this->frameCount++;
HXDLIN( 111)				 ::flixel::_hx_system::replay::FrameRecord _hx_tmp4 =  ::flixel::_hx_system::replay::FrameRecord_obj::__new()->load(line);
HXDLIN( 111)				this->_frames[_hx_tmp3] = _hx_tmp4;
HXLINE( 112)				Bool _hx_tmp5 = (this->frameCount >= this->_capacity);
HXDLIN( 112)				if (_hx_tmp5) {
HXLINE( 114)					hx::MultEq(this->_capacity,(int)2);
HXLINE( 115)					::flixel::util::FlxArrayUtil_obj::setLength_flixel_system_replay_FrameRecord(this->_frames,this->_capacity);
            				}
            			}
            		}
HXLINE( 120)		this->rewind();
            	}
Esempio n. 2
0
Int Output_obj::writeBytes( ::haxe::io::Bytes s,Int pos,Int len){
            	HX_STACK_FRAME("haxe.io.Output","writeBytes",0xa988c1f9,"haxe.io.Output.writeBytes","C:\\HaxeToolkit\\haxe\\std/haxe/io/Output.hx",57,0x05ec9a64)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(s,"s")
            	HX_STACK_ARG(pos,"pos")
            	HX_STACK_ARG(len,"len")
HXLINE(  59)		Bool _hx_tmp;
HXDLIN(  59)		Bool _hx_tmp1;
HXDLIN(  59)		if ((pos >= (int)0)) {
HXLINE(  59)			_hx_tmp1 = (len < (int)0);
            		}
            		else {
HXLINE(  59)			_hx_tmp1 = true;
            		}
HXDLIN(  59)		if (!(_hx_tmp1)) {
HXLINE(  59)			_hx_tmp = ((pos + len) > s->length);
            		}
            		else {
HXLINE(  59)			_hx_tmp = true;
            		}
HXDLIN(  59)		if (_hx_tmp) {
HXLINE(  60)			HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
            		}
HXLINE(  62)		HX_VARI( ::Array< unsigned char >,b) = s->b;
HXLINE(  63)		HX_VARI( Int,k) = len;
HXLINE(  64)		while((k > (int)0)){
HXLINE(  70)			Int _hx_tmp2 = b->__get(pos);
HXDLIN(  70)			this->writeByte(_hx_tmp2);
HXLINE(  76)			++pos;
HXLINE(  77)			--k;
            		}
HXLINE(  79)		return len;
            	}
Esempio n. 3
0
void FlxTimerManager_obj::update(Float elapsed){
            	HX_STACK_FRAME("flixel.util.FlxTimerManager","update",0xf26da137,"flixel.util.FlxTimerManager.update","flixel/util/FlxTimer.hx",235,0x0a681e11)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(elapsed,"elapsed")
HXLINE( 235)		HX_VARI( Int,_g) = (int)0;
HXDLIN( 235)		HX_VARI( ::Array< ::Dynamic>,_g1) = this->_timers;
HXDLIN( 235)		while((_g < _g1->length)){
HXLINE( 235)			HX_VARI(  ::flixel::util::FlxTimer,timer) = _g1->__get(_g).StaticCast<  ::flixel::util::FlxTimer >();
HXDLIN( 235)			++_g;
HXLINE( 237)			Bool _hx_tmp;
HXDLIN( 237)			Bool _hx_tmp1;
HXDLIN( 237)			if (timer->active) {
HXLINE( 237)				_hx_tmp1 = !(timer->finished);
            			}
            			else {
HXLINE( 237)				_hx_tmp1 = false;
            			}
HXDLIN( 237)			if (_hx_tmp1) {
HXLINE( 237)				_hx_tmp = (timer->time >= (int)0);
            			}
            			else {
HXLINE( 237)				_hx_tmp = false;
            			}
HXDLIN( 237)			if (_hx_tmp) {
HXLINE( 239)				timer->update(elapsed);
            			}
            		}
            	}
Esempio n. 4
0
void FlxSystemButton_obj::onMouseOut( ::Dynamic _){
            	HX_STACK_FRAME("flixel.system.ui.FlxSystemButton","onMouseOut",0x67e0ddf0,"flixel.system.ui.FlxSystemButton.onMouseOut","flixel/system/ui/FlxSystemButton.hx",120,0x167fa379)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(_,"_")
HXLINE( 120)		HX_VARI(  ::flixel::_hx_system::ui::FlxSystemButton,_g) = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 120)		Float _hx_tmp = _g->get_alpha();
HXDLIN( 120)		_g->set_alpha((_hx_tmp + ((Float)0.2)));
            	}
Esempio n. 5
0
            		void _hx_run( ::Dynamic o){
            			HX_STACK_FRAME("thx.TestLocalDate","testCreate",0xa78864bf,"thx.TestLocalDate.testCreate","thx/TestLocalDate.hx",33,0x01342be2)
            			HX_STACK_ARG(o,"o")
HXLINE(  33)			Bool _hx_tmp21 = (( (Int)(o->__Field(HX_("expected",78,2e,30,40),hx::paccDynamic)) ) == ( (Int)(o->__Field(HX_("test",52,c8,f9,4c),hx::paccDynamic)) ));
HXDLIN(  33)			::String _hx_tmp22 = ::thx::_LocalDate::LocalDate_Impl__obj::toString( ::Dynamic(o->__Field(HX_("expected",78,2e,30,40),hx::paccDynamic)));
HXDLIN(  33)			::String _hx_tmp23 = ((HX_("expected ",a8,7a,f8,e9) + _hx_tmp22) + HX_(" but was  ",2a,cb,10,56));
HXDLIN(  33)			::String _hx_tmp24 = ::thx::_LocalDate::LocalDate_Impl__obj::toString( ::Dynamic(o->__Field(HX_("test",52,c8,f9,4c),hx::paccDynamic)));
HXDLIN(  33)			::utest::Assert_obj::isTrue(_hx_tmp21,(_hx_tmp23 + _hx_tmp24),hx::SourceInfo(HX_("TestLocalDate.hx",b7,d2,ad,e4),33,HX_("thx.TestLocalDate",fd,64,f4,92),HX_("testCreate",ee,ac,03,95)));
            		}
Esempio n. 6
0
void BaseScaleMode_obj::updateScaleOffset() {
    HX_STACK_FRAME("flixel.system.scaleModes.BaseScaleMode","updateScaleOffset",0x13e546c7,"flixel.system.scaleModes.BaseScaleMode.updateScaleOffset","flixel/system/scaleModes/BaseScaleMode.hx",48,0x5a3188fe)
    HX_STACK_THIS(this)
    HXLINE(  49)		Float _hx_tmp = ((Float)this->gameSize->x / (Float)(::flixel::FlxG_obj::width * ::flixel::FlxG_obj::initialZoom));
    HXDLIN(  49)		this->scale->set_x(_hx_tmp);
    HXLINE(  50)		Float _hx_tmp1 = ((Float)this->gameSize->y / (Float)(::flixel::FlxG_obj::height * ::flixel::FlxG_obj::initialZoom));
    HXDLIN(  50)		this->scale->set_y(_hx_tmp1);
    HXLINE(  51)		this->updateOffsetX();
    HXLINE(  52)		this->updateOffsetY();
}
Esempio n. 7
0
void FlxTimerManager_obj::remove( ::flixel::util::FlxTimer Timer){
            	HX_STACK_FRAME("flixel.util.FlxTimerManager","remove",0x6ff0b772,"flixel.util.FlxTimerManager.remove","flixel/util/FlxTimer.hx",266,0x0a681e11)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(Timer,"Timer")
HXLINE( 266)		HX_VARI( ::Array< ::Dynamic>,array) = this->_timers;
HXDLIN( 266)		HX_VARI( Int,index) = array->indexOf(Timer,null());
HXDLIN( 266)		if ((index != (int)-1)) {
HXLINE( 266)			 ::flixel::util::FlxTimer _hx_tmp = array->__get((array->length - (int)1)).StaticCast<  ::flixel::util::FlxTimer >();
HXDLIN( 266)			array[index] = _hx_tmp;
HXDLIN( 266)			array->pop().StaticCast<  ::flixel::util::FlxTimer >();
            		}
            	}
Esempio n. 8
0
void FlxTileblock_obj::setTile(Int x,Int y,Int index){
            	HX_STACK_FRAME("flixel.tile.FlxTileblock","setTile",0x4b385fdd,"flixel.tile.FlxTileblock.setTile","flixel/tile/FlxTileblock.hx",162,0xecdf1de3)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(x,"x")
            	HX_STACK_ARG(y,"y")
            	HX_STACK_ARG(index,"index")
HXLINE( 163)		this->tileSprite->animation->set_frameIndex(index);
HXLINE( 164)		Float _hx_tmp = this->tileSprite->get_width();
HXDLIN( 164)		Int _hx_tmp1 = ::Std_obj::_hx_int(_hx_tmp);
HXDLIN( 164)		Int _hx_tmp2 = (x * _hx_tmp1);
HXDLIN( 164)		Float _hx_tmp3 = this->tileSprite->get_height();
HXDLIN( 164)		Int _hx_tmp4 = ::Std_obj::_hx_int(_hx_tmp3);
HXDLIN( 164)		this->stamp(this->tileSprite,_hx_tmp2,(y * _hx_tmp4));
HXLINE( 165)		this->dirty = true;
            	}
Esempio n. 9
0
void PrintReport_obj::_handler( ::utest::ui::text::PlainTextReport report){
            	HX_STACK_FRAME("utest.ui.text.PrintReport","_handler",0x4bb3dd06,"utest.ui.text.PrintReport._handler","utest/ui/text/PrintReport.hx",51,0x46976dac)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(report,"report")
HXLINE(  51)		::String _hx_tmp = report->getResults();
HXDLIN(  51)		this->_trace(_hx_tmp);
            	}
Esempio n. 10
0
::String Bytes_obj::getString(Int pos,Int len){
            	HX_STACK_FRAME("haxe.io.Bytes","getString",0xa16beae4,"haxe.io.Bytes.getString","C:\\HaxeToolkit\\haxe\\std/haxe/io/Bytes.hx",360,0x20b05d0c)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(pos,"pos")
            	HX_STACK_ARG(len,"len")
HXLINE( 362)		Bool _hx_tmp;
HXDLIN( 362)		Bool _hx_tmp1;
HXDLIN( 362)		if ((pos >= (int)0)) {
HXLINE( 362)			_hx_tmp1 = (len < (int)0);
            		}
            		else {
HXLINE( 362)			_hx_tmp1 = true;
            		}
HXDLIN( 362)		if (!(_hx_tmp1)) {
HXLINE( 362)			_hx_tmp = ((pos + len) > this->length);
            		}
            		else {
HXLINE( 362)			_hx_tmp = true;
            		}
HXDLIN( 362)		if (_hx_tmp) {
HXLINE( 362)			HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
            		}
HXLINE( 372)		HX_VARI( ::String,result) = HX_("",00,00,00,00);
HXLINE( 373)		::__hxcpp_string_of_bytes(this->b,result,pos,len);
HXLINE( 374)		return result;
            	}
Esempio n. 11
0
void StringBuf_obj::add( ::Dynamic x){
            	HX_STACK_FRAME("StringBuf","add",0xaa9f1675,"StringBuf.add","/usr/lib/haxe/std/cpp/_std/StringBuf.hx",41,0x629ed4da)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(x,"x")
HXLINE(  41)		::String _hx_tmp = ::Std_obj::string(x);
HXDLIN(  41)		this->b->push(_hx_tmp);
            	}
Esempio n. 12
0
 ::haxe::io::Bytes Bytes_obj::sub(Int pos,Int len){
            	HX_STACK_FRAME("haxe.io.Bytes","sub",0x393cae9d,"haxe.io.Bytes.sub","C:\\HaxeToolkit\\haxe\\std/haxe/io/Bytes.hx",133,0x20b05d0c)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(pos,"pos")
            	HX_STACK_ARG(len,"len")
HXLINE( 135)		Bool _hx_tmp;
HXDLIN( 135)		Bool _hx_tmp1;
HXDLIN( 135)		if ((pos >= (int)0)) {
HXLINE( 135)			_hx_tmp1 = (len < (int)0);
            		}
            		else {
HXLINE( 135)			_hx_tmp1 = true;
            		}
HXDLIN( 135)		if (!(_hx_tmp1)) {
HXLINE( 135)			_hx_tmp = ((pos + len) > this->length);
            		}
            		else {
HXLINE( 135)			_hx_tmp = true;
            		}
HXDLIN( 135)		if (_hx_tmp) {
HXLINE( 135)			HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
            		}
HXLINE( 157)		::Array< unsigned char > _hx_tmp2 = this->b->slice(pos,(pos + len));
HXDLIN( 157)		return  ::haxe::io::Bytes_obj::__new(len,_hx_tmp2);
            	}
Esempio n. 13
0
Int Int32_Impl__obj::preDecrement(Int this1){
            	HX_STACK_FRAME("haxe._Int32.Int32_Impl_","preDecrement",0x3a0b2727,"haxe._Int32.Int32_Impl_.preDecrement","/usr/lib/haxe/std/haxe/Int32.hx",41,0xece267d8)
            	HX_STACK_ARG(this1,"this1")
HXLINE(  41)		HX_VARI( Int,x) = --this1;
HXDLIN(  41)		this1 = x;
HXDLIN(  41)		return x;
            	}
Esempio n. 14
0
 ::flixel::tweens::motion::LinearMotion LinearMotion_obj::setMotion(Float FromX,Float FromY,Float ToX,Float ToY,Float DurationOrSpeed,hx::Null< Bool >  __o_UseDuration){
Bool UseDuration = __o_UseDuration.Default(true);
            	HX_STACK_FRAME("flixel.tweens.motion.LinearMotion","setMotion",0x53127aa9,"flixel.tweens.motion.LinearMotion.setMotion","flixel/tweens/motion/LinearMotion.hx",31,0x15b892fe)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(FromX,"FromX")
            	HX_STACK_ARG(FromY,"FromY")
            	HX_STACK_ARG(ToX,"ToX")
            	HX_STACK_ARG(ToY,"ToY")
            	HX_STACK_ARG(DurationOrSpeed,"DurationOrSpeed")
            	HX_STACK_ARG(UseDuration,"UseDuration")
HXLINE(  32)		this->_distance = (int)-1;
HXLINE(  33)		this->x = (this->_fromX = FromX);
HXLINE(  34)		this->y = (this->_fromY = FromY);
HXLINE(  35)		this->_moveX = (ToX - FromX);
HXLINE(  36)		this->_moveY = (ToY - FromY);
HXLINE(  38)		if (UseDuration) {
HXLINE(  40)			this->duration = DurationOrSpeed;
            		}
            		else {
HXLINE(  44)			Float _hx_tmp = this->get_distance();
HXDLIN(  44)			this->duration = ((Float)_hx_tmp / (Float)DurationOrSpeed);
            		}
HXLINE(  47)		this->start();
HXLINE(  49)		return hx::ObjectPtr<OBJ_>(this);
            	}
Esempio n. 15
0
 ::flixel::tile::FlxTileblock FlxTileblock_obj::loadTiles( ::Dynamic TileGraphic,hx::Null< Int >  __o_TileWidth,hx::Null< Int >  __o_TileHeight,hx::Null< Int >  __o_Empties){
Int TileWidth = __o_TileWidth.Default(0);
Int TileHeight = __o_TileHeight.Default(0);
Int Empties = __o_Empties.Default(0);
            	HX_STACK_FRAME("flixel.tile.FlxTileblock","loadTiles",0x7f9232ac,"flixel.tile.FlxTileblock.loadTiles","flixel/tile/FlxTileblock.hx",133,0xecdf1de3)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(TileGraphic,"TileGraphic")
            	HX_STACK_ARG(TileWidth,"TileWidth")
            	HX_STACK_ARG(TileHeight,"TileHeight")
            	HX_STACK_ARG(Empties,"Empties")
HXLINE( 134)		Bool _hx_tmp = hx::IsNull( TileGraphic );
HXDLIN( 134)		if (_hx_tmp) {
HXLINE( 136)			return hx::ObjectPtr<OBJ_>(this);
            		}
HXLINE( 139)		HX_VARI(  ::flixel::graphics::FlxGraphic,graph) = ::flixel::FlxG_obj::bitmap->add(TileGraphic,null(),null());
HXLINE( 140)		Bool _hx_tmp1 = hx::IsNull( graph );
HXDLIN( 140)		if (_hx_tmp1) {
HXLINE( 142)			return hx::ObjectPtr<OBJ_>(this);
            		}
HXLINE( 145)		Bool _hx_tmp2 = (TileWidth == (int)0);
HXDLIN( 145)		if (_hx_tmp2) {
HXLINE( 147)			TileWidth = graph->height;
HXLINE( 148)			Bool _hx_tmp3 = (TileWidth > graph->width);
HXDLIN( 148)			if (_hx_tmp3) {
HXLINE( 148)				TileWidth = graph->width;
            			}
            			else {
HXLINE( 148)				TileWidth = TileWidth;
            			}
            		}
HXLINE( 151)		Bool _hx_tmp4 = (TileHeight == (int)0);
HXDLIN( 151)		if (_hx_tmp4) {
HXLINE( 153)			TileHeight = TileWidth;
HXLINE( 154)			Bool _hx_tmp5 = (TileHeight > graph->height);
HXDLIN( 154)			if (_hx_tmp5) {
HXLINE( 154)				TileHeight = graph->height;
            			}
            			else {
HXLINE( 154)				TileHeight = TileHeight;
            			}
            		}
HXLINE( 157)		HX_VARI(  ::flixel::math::FlxPoint,point) = ::flixel::math::FlxPoint_obj::_pool->get()->set(TileWidth,TileHeight);
HXDLIN( 157)		point->_inPool = false;
HXDLIN( 157)		HX_VARI(  ::flixel::graphics::frames::FlxTileFrames,tileFrames) = ::flixel::graphics::frames::FlxTileFrames_obj::fromGraphic(graph,point,null(),null());
HXLINE( 158)		return this->loadFrames(tileFrames,Empties);
            	}
Esempio n. 16
0
 ::flixel::util::helpers::FlxRange FlxRange_obj::set( ::Dynamic start, ::Dynamic end){
            	HX_STACK_FRAME("flixel.util.helpers.FlxRange","set",0x6d2f1be2,"flixel.util.helpers.FlxRange.set","flixel/util/helpers/FlxRange.hx",43,0x9ab2f00f)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(start,"start")
            	HX_STACK_ARG(end,"end")
HXLINE(  44)		this->start = start;
HXLINE(  45)		 ::Dynamic _hx_tmp;
HXDLIN(  45)		Bool _hx_tmp1 = hx::IsNull( end );
HXDLIN(  45)		if (_hx_tmp1) {
HXLINE(  45)			_hx_tmp = start;
            		}
            		else {
HXLINE(  45)			_hx_tmp = end;
            		}
HXDLIN(  45)		this->end = _hx_tmp;
HXLINE(  47)		return hx::ObjectPtr<OBJ_>(this);
            	}
void Float32Array_obj::__set(Int index,Float value){
            	HX_STACK_FRAME("openfl._legacy.utils.Float32Array","__set",0x033e7a93,"openfl._legacy.utils.Float32Array.__set","openfl/_legacy/utils/Float32Array.hx",130,0x72368d3c)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(index,"index")
            	HX_STACK_ARG(value,"value")
HXLINE( 130)		Int _hx_tmp = (((int)index << (int)(int)2) + this->byteOffset);
HXDLIN( 130)		::__hxcpp_memory_set_float(this->bytes,_hx_tmp,value);
            	}
Esempio n. 18
0
Bool HashMap_Impl__obj::remove( ::haxe::ds::_HashMap::HashMapData this1, ::Dynamic k){
            	HX_STACK_FRAME("haxe.ds._HashMap.HashMap_Impl_","remove",0xef67966c,"haxe.ds._HashMap.HashMap_Impl_.remove","/usr/lib/haxe/std/haxe/ds/HashMap.hx",64,0x04ed6968)
            	HX_STACK_ARG(this1,"this1")
            	HX_STACK_ARG(k,"k")
HXLINE(  65)		Int _hx_tmp = ( (Int)( ::Dynamic(k->__Field(HX_("hashCode",1b,0c,75,07),hx::paccDynamic))()) );
HXDLIN(  65)		this1->values->remove(_hx_tmp);
HXLINE(  66)		Int _hx_tmp1 = ( (Int)( ::Dynamic(k->__Field(HX_("hashCode",1b,0c,75,07),hx::paccDynamic))()) );
HXDLIN(  66)		return this1->keys->remove(_hx_tmp1);
            	}
Esempio n. 19
0
 ::Dynamic ComparableOrdMap_obj::getAlt(::hx::EnumBase map, ::Dynamic key, ::Dynamic alt){
            	HX_STACK_FRAME("thx.fp.ComparableOrdMap","getAlt",0x4f2665b2,"thx.fp.ComparableOrdMap.getAlt","thx/fp/Maps.hx",99,0x8274fa8d)
            	HX_STACK_ARG(map,"map")
            	HX_STACK_ARG(key,"key")
            	HX_STACK_ARG(alt,"alt")
HXLINE(  99)		 ::Dynamic _hx_tmp = ::thx::_Ord::Ord_Impl__obj::forComparableOrd();
HXDLIN(  99)		::hx::EnumBase _hx_tmp1 = ::thx::fp::_Map::Map_Impl__obj::lookup(map,key,_hx_tmp);
HXDLIN(  99)		return ::thx::Options_obj::getOrElse(_hx_tmp1,alt);
            	}
Esempio n. 20
0
Float FlxPrerotatedAnimation_obj::set_angle(Float Value){
            	HX_STACK_FRAME("flixel.animation.FlxPrerotatedAnimation","set_angle",0x23607fd0,"flixel.animation.FlxPrerotatedAnimation.set_angle","flixel/animation/FlxPrerotatedAnimation.hx",25,0x4a5f70b4)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(Value,"Value")
HXLINE(  26)		HX_VARI( Int,oldIndex) = this->curIndex;
HXLINE(  27)		HX_VARI( Int,angleHelper) = ::Math_obj::floor(hx::Mod(Value,(int)360));
HXLINE(  29)		while((angleHelper < (int)0)){
HXLINE(  31)			hx::AddEq(angleHelper,(int)360);
            		}
HXLINE(  34)		Float _hx_tmp = (((Float)angleHelper / (Float)this->baked) + ((Float)0.5));
HXDLIN(  34)		HX_VARI( Int,newIndex) = ::Math_obj::floor(_hx_tmp);
HXLINE(  35)		Int _hx_tmp1 = hx::Mod(newIndex,this->rotations);
HXDLIN(  35)		newIndex = ::Std_obj::_hx_int(_hx_tmp1);
HXLINE(  36)		if ((oldIndex != newIndex)) {
HXLINE(  38)			this->set_curIndex(newIndex);
            		}
HXLINE(  41)		return (this->angle = Value);
            	}
Esempio n. 21
0
Bool HashSet_Impl__obj::add( ::haxe::ds::_HashMap::HashMapData this1, ::Dynamic v){
            	HX_STACK_FRAME("thx._HashSet.HashSet_Impl_","add",0x20fc7f78,"thx._HashSet.HashSet_Impl_.add","thx/HashSet.hx",38,0x440165d5)
            	HX_STACK_ARG(this1,"this1")
            	HX_STACK_ARG(v,"v")
HXLINE(  38)		Int _hx_tmp = ( (Int)( ::Dynamic(v->__Field(HX_("hashCode",1b,0c,75,07),hx::paccDynamic))()) );
HXDLIN(  38)		Bool _hx_tmp1 = this1->values->exists(_hx_tmp);
HXDLIN(  38)		if (_hx_tmp1) {
HXLINE(  38)			return false;
            		}
            		else {
Esempio n. 22
0
Int FlxKeyboard_obj::resolveKeyCode( ::openfl::_legacy::events::KeyboardEvent e){
            	HX_STACK_FRAME("flixel.input.keyboard.FlxKeyboard","resolveKeyCode",0x581c5a06,"flixel.input.keyboard.FlxKeyboard.resolveKeyCode","flixel/input/keyboard/FlxKeyboard.hx",119,0x41882875)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(e,"e")
HXLINE( 123)		::String key = ((e->charCode + HX_("_",5f,00,00,00)) + e->keyCode);
HXDLIN( 123)		HX_VARI(  ::Dynamic,code) = this->_nativeCorrection->get(key);
HXLINE( 124)		Bool _hx_tmp = hx::IsNull( code );
HXDLIN( 124)		if (_hx_tmp) {
HXLINE( 124)			return e->keyCode;
            		}
            		else {
void RectangleTexture_obj::uploadFromBitmapData( ::openfl::_legacy::display::BitmapData bitmapData,hx::Null< Int >  __o_miplevel){
Int miplevel = __o_miplevel.Default(0);
            	HX_STACK_FRAME("openfl.display3D.textures.RectangleTexture","uploadFromBitmapData",0x711b2e49,"openfl.display3D.textures.RectangleTexture.uploadFromBitmapData","openfl/display3D/textures/RectangleTexture.hx",47,0x83565556)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(bitmapData,"bitmapData")
            	HX_STACK_ARG(miplevel,"miplevel")
HXLINE(  52)		Int _hx_tmp = bitmapData->get_width();
HXDLIN(  52)		Int _hx_tmp1 = bitmapData->get_height();
HXDLIN(  52)		Bool _hx_tmp2 = bitmapData->get_transparent();
HXDLIN(  52)		HX_VARI(  ::openfl::_legacy::display::BitmapData,rgbaData) =  ::openfl::_legacy::display::BitmapData_obj::__new(_hx_tmp,_hx_tmp1,_hx_tmp2,null(),null());
HXDLIN(  52)		HX_VARI(  ::openfl::_legacy::geom::Rectangle,rect) = bitmapData->get_rect();
HXDLIN(  52)		HX_VARI(  ::openfl::_legacy::geom::Point,point) =  ::openfl::_legacy::geom::Point_obj::__new((int)0,(int)0);
HXDLIN(  52)		rgbaData->copyChannel(bitmapData,rect,point,(int)2,(int)1);
HXDLIN(  52)		rgbaData->copyChannel(bitmapData,rect,point,(int)4,(int)2);
HXDLIN(  52)		rgbaData->copyChannel(bitmapData,rect,point,(int)8,(int)4);
HXDLIN(  52)		rgbaData->copyChannel(bitmapData,rect,point,(int)1,(int)8);
HXDLIN(  52)		HX_VARI(  ::openfl::_legacy::utils::ByteArray,p) = rgbaData->getPixels(rect);
HXLINE(  57)		this->width = bitmapData->get_width();
HXLINE(  58)		this->height = bitmapData->get_height();
HXLINE(  60)		this->uploadFromByteArray(p,(int)0);
            	}
Esempio n. 24
0
void __ASSET__flixel_sounds_flixel_ogg_obj::__construct( ::openfl::_legacy::net::URLRequest stream, ::openfl::media::SoundLoaderContext context, ::Dynamic __o_forcePlayAsMusic){
 ::Dynamic forcePlayAsMusic = __o_forcePlayAsMusic.Default(false);
            	HX_STACK_FRAME("__ASSET__flixel_sounds_flixel_ogg","new",0xa56e6f66,"__ASSET__flixel_sounds_flixel_ogg.new","openfl/_legacy/Assets.hx",2283,0x9276b055)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(stream,"stream")
            	HX_STACK_ARG(context,"context")
            	HX_STACK_ARG(forcePlayAsMusic,"forcePlayAsMusic")
HXLINE(2285)		super::__construct(null(),null(),null());
HXLINE(2287)		 ::haxe::io::Bytes _hx_tmp = ::haxe::Resource_obj::getBytes(::__ASSET__flixel_sounds_flixel_ogg_obj::resourceName);
HXDLIN(2287)		HX_VARI(  ::openfl::_legacy::utils::ByteArray,byteArray) = ::openfl::_legacy::utils::ByteArray_obj::fromBytes(_hx_tmp);
HXLINE(2288)		this->loadCompressedDataFromByteArray(byteArray,byteArray->length,forcePlayAsMusic);
            	}
Esempio n. 25
0
void Bytes_obj::blit(Int pos, ::haxe::io::Bytes src,Int srcpos,Int len){
            	HX_STACK_FRAME("haxe.io.Bytes","blit",0xd098ac78,"haxe.io.Bytes.blit","C:\\HaxeToolkit\\haxe\\std/haxe/io/Bytes.hx",79,0x20b05d0c)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(pos,"pos")
            	HX_STACK_ARG(src,"src")
            	HX_STACK_ARG(srcpos,"srcpos")
            	HX_STACK_ARG(len,"len")
HXLINE(  81)		Bool _hx_tmp;
HXDLIN(  81)		Bool _hx_tmp1;
HXDLIN(  81)		Bool _hx_tmp2;
HXDLIN(  81)		Bool _hx_tmp3;
HXDLIN(  81)		if ((pos >= (int)0)) {
HXLINE(  81)			_hx_tmp3 = (srcpos < (int)0);
            		}
            		else {
HXLINE(  81)			_hx_tmp3 = true;
            		}
HXDLIN(  81)		if (!(_hx_tmp3)) {
HXLINE(  81)			_hx_tmp2 = (len < (int)0);
            		}
            		else {
HXLINE(  81)			_hx_tmp2 = true;
            		}
HXDLIN(  81)		if (!(_hx_tmp2)) {
HXLINE(  81)			_hx_tmp1 = ((pos + len) > this->length);
            		}
            		else {
HXLINE(  81)			_hx_tmp1 = true;
            		}
HXDLIN(  81)		if (!(_hx_tmp1)) {
HXLINE(  81)			_hx_tmp = ((srcpos + len) > src->length);
            		}
            		else {
HXLINE(  81)			_hx_tmp = true;
            		}
HXDLIN(  81)		if (_hx_tmp) {
HXLINE(  81)			HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
            		}
HXLINE(  97)		this->b->blit(pos,src->b,srcpos,len);
            	}
Esempio n. 26
0
 ::flixel::util::helpers::FlxRangeBounds FlxRangeBounds_obj::set( ::Dynamic startMin, ::Dynamic startMax, ::Dynamic endMin, ::Dynamic endMax){
            	HX_STACK_FRAME("flixel.util.helpers.FlxRangeBounds","set",0x191e7b77,"flixel.util.helpers.FlxRangeBounds.set","flixel/util/helpers/FlxRangeBounds.hx",49,0xa540535a)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(startMin,"startMin")
            	HX_STACK_ARG(startMax,"startMax")
            	HX_STACK_ARG(endMin,"endMin")
            	HX_STACK_ARG(endMax,"endMax")
HXLINE(  50)		this->start->min = startMin;
HXLINE(  51)		 ::Dynamic _hx_tmp;
HXDLIN(  51)		Bool _hx_tmp1 = hx::IsNull( startMax );
HXDLIN(  51)		if (_hx_tmp1) {
HXLINE(  51)			_hx_tmp = this->start->min;
            		}
            		else {
HXLINE(  51)			_hx_tmp = startMax;
            		}
HXDLIN(  51)		this->start->max = _hx_tmp;
HXLINE(  52)		 ::Dynamic _hx_tmp2;
HXDLIN(  52)		Bool _hx_tmp3 = hx::IsNull( endMin );
HXDLIN(  52)		if (_hx_tmp3) {
HXLINE(  52)			_hx_tmp2 = this->start->min;
            		}
            		else {
HXLINE(  52)			_hx_tmp2 = endMin;
            		}
HXDLIN(  52)		this->end->min = _hx_tmp2;
HXLINE(  53)		 ::Dynamic _hx_tmp4;
HXDLIN(  53)		Bool _hx_tmp5 = hx::IsNull( endMax );
HXDLIN(  53)		if (_hx_tmp5) {
HXLINE(  53)			Bool _hx_tmp6 = hx::IsNull( endMin );
HXDLIN(  53)			if (_hx_tmp6) {
HXLINE(  53)				_hx_tmp4 = this->start->max;
            			}
            			else {
HXLINE(  53)				_hx_tmp4 = this->end->min;
            			}
            		}
            		else {
Esempio n. 27
0
void GraphicPause_obj::__construct(Int width,Int height, ::Dynamic __o_transparent, ::Dynamic __o_fillRGBA){
 ::Dynamic transparent = __o_transparent.Default(true);
 ::Dynamic fillRGBA = __o_fillRGBA.Default(-1);
            	HX_STACK_FRAME("flixel.system.debug._VCR.GraphicPause","new",0x93ef75a0,"flixel.system.debug._VCR.GraphicPause.new","openfl/_legacy/Assets.hx",2010,0x9276b055)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(width,"width")
            	HX_STACK_ARG(height,"height")
            	HX_STACK_ARG(transparent,"transparent")
            	HX_STACK_ARG(fillRGBA,"fillRGBA")
HXLINE(2076)		super::__construct(width,height,transparent,fillRGBA,null());
HXLINE(2078)		 ::haxe::io::Bytes _hx_tmp = ::haxe::Resource_obj::getBytes(::flixel::_hx_system::debug::_VCR::GraphicPause_obj::resourceName);
HXDLIN(2078)		HX_VARI(  ::openfl::_legacy::utils::ByteArray,byteArray) = ::openfl::_legacy::utils::ByteArray_obj::fromBytes(_hx_tmp);
HXLINE(2079)		this->_hx___handle = ::openfl::_legacy::display::BitmapData_obj::lime_bitmap_data_from_bytes(byteArray,null());
            	}
Esempio n. 28
0
void BaseScaleMode_obj::updateOffsetY() {
    HX_STACK_FRAME("flixel.system.scaleModes.BaseScaleMode","updateOffsetY",0xcbc72570,"flixel.system.scaleModes.BaseScaleMode.updateOffsetY","flixel/system/scaleModes/BaseScaleMode.hx",70,0x5a3188fe)
    HX_STACK_THIS(this)
    HXLINE(  70)		HX_VARI( ::hx::EnumBase,_g) = this->verticalAlign;
    HXDLIN(  70)		Float _hx_tmp;
    HXDLIN(  70)		Int _hx_tmp1 = ( ( ::hx::EnumBase)(_g) )->_hx_getIndex();
    HXDLIN(  70)		switch((int)(_hx_tmp1)) {
    case (int)0: {
        HXLINE(  70)				_hx_tmp = (int)0;
    }
    break;
    case (int)1: {
        HXLINE(  75)				Float _hx_tmp2 = ((this->deviceSize->y - this->gameSize->y) * ((Float)0.5));
        HXLINE(  70)				_hx_tmp = ::Math_obj::ceil(_hx_tmp2);
    }
    break;
    case (int)2: {
        HXLINE(  70)				_hx_tmp = (this->deviceSize->y - this->gameSize->y);
    }
    break;
    }
    HXDLIN(  70)		this->offset->set_y(_hx_tmp);
}
Esempio n. 29
0
void RatioScaleMode_obj::updateGameSize(Int Width,Int Height){
            	HX_STACK_FRAME("flixel.system.scaleModes.RatioScaleMode","updateGameSize",0xacc31ced,"flixel.system.scaleModes.RatioScaleMode.updateGameSize","flixel/system/scaleModes/RatioScaleMode.hx",20,0x35e4ce80)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(Width,"Width")
            	HX_STACK_ARG(Height,"Height")
HXLINE(  21)		HX_VARI( Float,ratio) = ((Float)::flixel::FlxG_obj::width / (Float)::flixel::FlxG_obj::height);
HXLINE(  24)		HX_VARI( Bool,scaleY) = (((Float)Width / (Float)Height) < ratio);
HXLINE(  25)		if (this->fillScreen) {
HXLINE(  27)			scaleY = !(scaleY);
            		}
HXLINE(  30)		if (scaleY) {
HXLINE(  32)			this->gameSize->set_x(Width);
HXLINE(  33)			Float _hx_tmp = ((Float)this->gameSize->x / (Float)ratio);
HXDLIN(  33)			Int _hx_tmp1 = ::Math_obj::floor(_hx_tmp);
HXDLIN(  33)			this->gameSize->set_y(_hx_tmp1);
            		}
            		else {
HXLINE(  37)			this->gameSize->set_y(Height);
HXLINE(  38)			Float _hx_tmp2 = (this->gameSize->y * ratio);
HXDLIN(  38)			Int _hx_tmp3 = ::Math_obj::floor(_hx_tmp2);
HXDLIN(  38)			this->gameSize->set_x(_hx_tmp3);
            		}
            	}
Esempio n. 30
0
void __ASSET__flixel_images_ui_button_png_obj::__construct(Int width,Int height, ::Dynamic __o_transparent, ::Dynamic __o_fillRGBA){
 ::Dynamic transparent = __o_transparent.Default(true);
 ::Dynamic fillRGBA = __o_fillRGBA.Default(-1);
            	HX_STACK_FRAME("__ASSET__flixel_images_ui_button_png","new",0xffee3785,"__ASSET__flixel_images_ui_button_png.new","openfl/_legacy/Assets.hx",2010,0x9276b055)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(width,"width")
            	HX_STACK_ARG(height,"height")
            	HX_STACK_ARG(transparent,"transparent")
            	HX_STACK_ARG(fillRGBA,"fillRGBA")
HXLINE(2076)		super::__construct(width,height,transparent,fillRGBA,null());
HXLINE(2078)		 ::haxe::io::Bytes _hx_tmp = ::haxe::Resource_obj::getBytes(::__ASSET__flixel_images_ui_button_png_obj::resourceName);
HXDLIN(2078)		HX_VARI(  ::openfl::_legacy::utils::ByteArray,byteArray) = ::openfl::_legacy::utils::ByteArray_obj::fromBytes(_hx_tmp);
HXLINE(2079)		this->_hx___handle = ::openfl::_legacy::display::BitmapData_obj::lime_bitmap_data_from_bytes(byteArray,null());
            	}