示例#1
0
::com::eclecticdesignstudio::motion::actuators::IGenericActuator TransformOptions_obj::color( hx::Null< Float >  __o_value,hx::Null< Float >  __o_strength,Dynamic alpha) {
    Float value = __o_value.Default(0);
    Float strength = __o_strength.Default(1);
    HX_STACK_PUSH("TransformOptions::color","com/eclecticdesignstudio/motion/Actuate.hx",500);
    HX_STACK_THIS(this);
    HX_STACK_ARG(value,"value");
    HX_STACK_ARG(strength,"strength");
    HX_STACK_ARG(alpha,"alpha");
    {
        struct _Function_1_1 {
            inline static Dynamic Block( Float &value,Float &strength) {
                HX_STACK_PUSH("*::closure","com/eclecticdesignstudio/motion/Actuate.hx",502);
                {
                    hx::Anon __result = hx::Anon_obj::Create();
                    __result->Add(HX_CSTRING("colorValue") , value,false);
                    __result->Add(HX_CSTRING("colorStrength") , strength,false);
                    return __result;
                }
                return null();
            }
        };
        HX_STACK_LINE(502)
        Dynamic properties = _Function_1_1::Block(value,strength);
        HX_STACK_VAR(properties,"properties");
        HX_STACK_LINE(504)
        if (((alpha != null()))) {
            HX_STACK_LINE(504)
            properties->__FieldRef(HX_CSTRING("colorAlpha")) = alpha;
        }
        HX_STACK_LINE(510)
        return ::com::eclecticdesignstudio::motion::Actuate_obj::tween(this->target,this->duration,properties,this->overwrite,hx::ClassOf< ::com::eclecticdesignstudio::motion::actuators::TransformActuator >());
    }
}
示例#2
0
Void CodeValuePair_obj::__construct(hx::Null< int >  __o_Code,hx::Null< int >  __o_Value)
{
HX_STACK_PUSH("CodeValuePair::new","flixel/system/replay/CodeValuePair.hx",13);
int Code = __o_Code.Default(0);
int Value = __o_Value.Default(0);
{
	HX_STACK_LINE(14)
	this->code = Code;
	HX_STACK_LINE(15)
	this->value = Value;
}
;
	return null();
}
示例#3
0
Void ConsoleRenderContext_obj::clear( int r,int g,int b,int a,hx::Null< Float >  __o_depth,hx::Null< int >  __o_stencil){
Float depth = __o_depth.Default(((Float)1.0));
int stencil = __o_stencil.Default(0);
	HX_STACK_FRAME("lime.graphics.ConsoleRenderContext","clear",0xc822aa8b,"lime.graphics.ConsoleRenderContext.clear","lime/graphics/ConsoleRenderContext.hx",347,0x16233b72)
	HX_STACK_THIS(this)
	HX_STACK_ARG(r,"r")
	HX_STACK_ARG(g,"g")
	HX_STACK_ARG(b,"b")
	HX_STACK_ARG(a,"a")
	HX_STACK_ARG(depth,"depth")
	HX_STACK_ARG(stencil,"stencil")
{
	}
return null();
}
示例#4
0
Void Tilesheet_obj::drawTiles( ::flash::display::Graphics graphics,Array< Float > tileData,hx::Null< bool >  __o_smooth,hx::Null< int >  __o_flags){
bool smooth = __o_smooth.Default(false);
int flags = __o_flags.Default(0);
	HX_STACK_PUSH("Tilesheet::drawTiles","openfl/display/Tilesheet.hx",62);
	HX_STACK_THIS(this);
	HX_STACK_ARG(graphics,"graphics");
	HX_STACK_ARG(tileData,"tileData");
	HX_STACK_ARG(smooth,"smooth");
	HX_STACK_ARG(flags,"flags");
{
		HX_STACK_LINE(62)
		graphics->drawTiles(hx::ObjectPtr<OBJ_>(this),tileData,smooth,flags);
	}
return null();
}
示例#5
0
Void ConsoleFrontEnd_obj::addCommand( Array< ::String > Aliases,Dynamic ProcessFunction,::String Help,::String ParamHelp,hx::Null< int >  __o_NumParams,hx::Null< int >  __o_ParamCutoff){
int NumParams = __o_NumParams.Default(0);
int ParamCutoff = __o_ParamCutoff.Default(-1);
	HX_STACK_FRAME("flixel.system.frontEnds.ConsoleFrontEnd","addCommand",0x0a98e909,"flixel.system.frontEnds.ConsoleFrontEnd.addCommand","flixel/system/frontEnds/ConsoleFrontEnd.hx",49,0x0ff3a650)
	HX_STACK_THIS(this)
	HX_STACK_ARG(Aliases,"Aliases")
	HX_STACK_ARG(ProcessFunction,"ProcessFunction")
	HX_STACK_ARG(Help,"Help")
	HX_STACK_ARG(ParamHelp,"ParamHelp")
	HX_STACK_ARG(NumParams,"NumParams")
	HX_STACK_ARG(ParamCutoff,"ParamCutoff")
{
	}
return null();
}
示例#6
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);
            	}
Void Doorentity_obj::__construct(hx::Null< Float >  __o_X,hx::Null< Float >  __o_Y)
{
HX_STACK_FRAME("Doorentity","new",0x7f705ca3,"Doorentity.new","Doorentity.hx",13,0x4573482d)
HX_STACK_THIS(this)
HX_STACK_ARG(__o_X,"X")
HX_STACK_ARG(__o_Y,"Y")
Float X = __o_X.Default(0);
Float Y = __o_Y.Default(0);
{
	HX_STACK_LINE(14)
	super::__construct(X,Y,null());
	HX_STACK_LINE(15)
	this->loadGraphic(HX_CSTRING("assets/images/door.png"),null(),null(),null(),null(),null());
}
;
	return null();
}
Void SoundLoaderContext_obj::__construct(hx::Null< Float >  __o_bufferTime,hx::Null< bool >  __o_checkPolicyFile)
{
HX_STACK_FRAME("openfl.media.SoundLoaderContext","new",0xafd95147,"openfl.media.SoundLoaderContext.new","openfl/media/SoundLoaderContext.hx",154,0x79afda07)
HX_STACK_THIS(this)
HX_STACK_ARG(__o_bufferTime,"bufferTime")
HX_STACK_ARG(__o_checkPolicyFile,"checkPolicyFile")
Float bufferTime = __o_bufferTime.Default(0);
bool checkPolicyFile = __o_checkPolicyFile.Default(false);
{
	HX_STACK_LINE(156)
	this->bufferTime = bufferTime;
	HX_STACK_LINE(157)
	this->checkPolicyFile = checkPolicyFile;
}
;
	return null();
}
示例#9
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);
            	}
示例#10
0
::sys::io::FileOutput File_obj::write( ::String path,hx::Null< bool >  __o_binary){
bool binary = __o_binary.Default(true);
	HX_STACK_PUSH("File::write","sys/io/File.hx",53);
	HX_STACK_ARG(path,"path");
	HX_STACK_ARG(binary,"binary");
{
		HX_STACK_LINE(53)
		return ::sys::io::FileOutput_obj::__new(::sys::io::File_obj::file_open(path,(  ((binary)) ? ::String(HX_CSTRING("wb")) : ::String(HX_CSTRING("w")) )));
	}
}
示例#11
0
::sys::io::FileInput File_obj::read( ::String path,hx::Null< bool >  __o_binary){
bool binary = __o_binary.Default(true);
	HX_STACK_PUSH("File::read","sys/io/File.hx",49);
	HX_STACK_ARG(path,"path");
	HX_STACK_ARG(binary,"binary");
{
		HX_STACK_LINE(49)
		return ::sys::io::FileInput_obj::__new(::sys::io::File_obj::file_open(path,(  ((binary)) ? ::String(HX_CSTRING("rb")) : ::String(HX_CSTRING("r")) )));
	}
}
示例#12
0
Void Ads_obj::showAd( hx::Null< bool >  __o_onBottom){
bool onBottom = __o_onBottom.Default(true);
	HX_STACK_PUSH("Ads::showAd","Ads.hx",103);
	HX_STACK_ARG(onBottom,"onBottom");
{
		HX_STACK_LINE(103)
		::Ads_obj::ads_showad((  ((onBottom)) ? int((int)0) : int((int)1) ));
	}
return null();
}
示例#13
0
文件: File.cpp 项目: guarajeno/funbox
::sys::io::FileOutput File_obj::append( ::String path,hx::Null< bool >  __o_binary){
bool binary = __o_binary.Default(true);
	HX_STACK_PUSH("File::append","C:\\Motion-Twin\\haxe/std/cpp/_std/sys/io/File.hx",60);
	HX_STACK_ARG(path,"path");
	HX_STACK_ARG(binary,"binary");
{
		HX_STACK_LINE(60)
		return ::sys::io::FileOutput_obj::__new(::sys::io::File_obj::file_open(path,(  ((binary)) ? ::String(HX_CSTRING("ab")) : ::String(HX_CSTRING("a")) )));
	}
}
示例#14
0
Void FlxGroup_obj::__construct(hx::Null< int >  __o_MaxSize)
{
HX_STACK_PUSH("FlxGroup::new","org/flixel/FlxGroup.hx",16);
int MaxSize = __o_MaxSize.Default(0);
{
	HX_STACK_LINE(16)
	super::__construct(MaxSize);
}
;
	return null();
}
示例#15
0
Void Lib_obj::create( Dynamic onLoaded,int width,int height,hx::Null< Float >  __o_frameRate,hx::Null< int >  __o_color,hx::Null< int >  __o_flags,::String __o_title,::native::display::BitmapData icon,::Class stageClass){
Float frameRate = __o_frameRate.Default(60.0);
int color = __o_color.Default(16777215);
int flags = __o_flags.Default(15);
::String title = __o_title.Default(HX_CSTRING("NME"));
	HX_STACK_PUSH("Lib::create","nme/Lib.hx",93);
	HX_STACK_ARG(onLoaded,"onLoaded");
	HX_STACK_ARG(width,"width");
	HX_STACK_ARG(height,"height");
	HX_STACK_ARG(frameRate,"frameRate");
	HX_STACK_ARG(color,"color");
	HX_STACK_ARG(flags,"flags");
	HX_STACK_ARG(title,"title");
	HX_STACK_ARG(icon,"icon");
	HX_STACK_ARG(stageClass,"stageClass");
{
		HX_STACK_LINE(93)
		::native::Lib_obj::create(onLoaded,width,height,frameRate,color,flags,title,icon,stageClass);
	}
return null();
}
示例#16
0
Void BasicShader_obj::tweenProperty( ::String name,Float targetValue,hx::Null< Float >  __o_duration,Dynamic easing){
Float duration = __o_duration.Default(1);
	HX_STACK_PUSH("BasicShader::tweenProperty","com/stencyl/graphics/shaders/BasicShader.hx",19);
	HX_STACK_THIS(this);
	HX_STACK_ARG(name,"name");
	HX_STACK_ARG(targetValue,"targetValue");
	HX_STACK_ARG(duration,"duration");
	HX_STACK_ARG(easing,"easing");
{
		HX_STACK_LINE(19)
		this->model->tweenUniform(name,targetValue,duration,easing);
	}
return null();
}
::graphite::ui::KC8Object KC8ObjectContainer_obj::addKC8Object( ::graphite::ui::KC8Object _o,hx::Null< int >  __o__x,hx::Null< int >  __o__y){
int _x = __o__x.Default(0);
int _y = __o__y.Default(0);
	HX_STACK_PUSH("KC8ObjectContainer::addKC8Object","graphite/ui/KC8ObjectContainer.hx",27);
	HX_STACK_THIS(this);
	HX_STACK_ARG(_o,"_o");
	HX_STACK_ARG(_x,"_x");
	HX_STACK_ARG(_y,"_y");
{
		HX_STACK_LINE(28)
		this->addChild(hx::TCast< flash::display::DisplayObject >::cast(_o));
		HX_STACK_LINE(29)
		this->children->__Field(HX_CSTRING("push"),true)(_o);
		HX_STACK_LINE(30)
		_o->load();
		HX_STACK_LINE(31)
		_o->set_x(_x);
		HX_STACK_LINE(32)
		_o->set_y(_y);
		HX_STACK_LINE(33)
		return _o;
	}
}
示例#18
0
Void Ads_obj::initialize( ::String __o_apiCode,hx::Null< int >  __o_position){
::String apiCode = __o_apiCode.Default(HX_CSTRING("none"));
int position = __o_position.Default(0);
	HX_STACK_PUSH("Ads::initialize","Ads.hx",69);
	HX_STACK_ARG(apiCode,"apiCode");
	HX_STACK_ARG(position,"position");
{
		HX_STACK_LINE(70)
		if ((::Ads_obj::initialized)){
			HX_STACK_LINE(71)
			return null();
		}
		HX_STACK_LINE(76)
		::Ads_obj::set_event_handle(::Ads_obj::notifyListeners_dyn());
		HX_STACK_LINE(77)
		::Ads_obj::initialized = true;
	}
return null();
}
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);
            	}
示例#20
0
 ::flixel::tile::FlxTileblock FlxTileblock_obj::loadFrames( ::flixel::graphics::frames::FlxTileFrames tileFrames,hx::Null< Int >  __o_empties){
Int empties = __o_empties.Default(0);
            	HX_STACK_FRAME("flixel.tile.FlxTileblock","loadFrames",0xaeb6fc9f,"flixel.tile.FlxTileblock.loadFrames","flixel/tile/FlxTileblock.hx",52,0xecdf1de3)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(tileFrames,"tileFrames")
            	HX_STACK_ARG(empties,"empties")
HXLINE(  53)		Bool _hx_tmp = hx::IsNull( tileFrames );
HXDLIN(  53)		if (_hx_tmp) {
HXLINE(  55)			return hx::ObjectPtr<OBJ_>(this);
            		}
HXLINE(  59)		 ::flixel::FlxSprite _hx_tmp1;
HXDLIN(  59)		Bool _hx_tmp2 = hx::IsNull( this->tileSprite );
HXDLIN(  59)		if (_hx_tmp2) {
HXLINE(  59)			_hx_tmp1 =  ::flixel::FlxSprite_obj::__new(null(),null(),null());
            		}
            		else {
HXLINE(  59)			_hx_tmp1 = this->tileSprite;
            		}
HXDLIN(  59)		this->tileSprite = _hx_tmp1;
HXLINE(  60)		this->tileSprite->set_frames(tileFrames);
HXLINE(  61)		Float _hx_tmp3 = this->tileSprite->get_width();
HXDLIN(  61)		HX_VARI( Int,spriteWidth) = ::Std_obj::_hx_int(_hx_tmp3);
HXLINE(  62)		Float _hx_tmp4 = this->tileSprite->get_height();
HXDLIN(  62)		HX_VARI( Int,spriteHeight) = ::Std_obj::_hx_int(_hx_tmp4);
HXLINE(  63)		HX_VARI( Int,total) = (this->tileSprite->numFrames + empties);
HXLINE(  66)		HX_VARI( Bool,regen) = false;
HXLINE(  68)		Float _hx_tmp5 = this->get_width();
HXDLIN(  68)		Float _hx_tmp6 = this->tileSprite->get_width();
HXDLIN(  68)		if ((hx::Mod(_hx_tmp5,_hx_tmp6) != (int)0)) {
HXLINE(  70)			Float _hx_tmp7 = this->get_width();
HXDLIN(  70)			Int _hx_tmp8 = ::Std_obj::_hx_int((((Float)_hx_tmp7 / (Float)spriteWidth) + (int)1));
HXDLIN(  70)			this->set_width((_hx_tmp8 * spriteWidth));
HXLINE(  71)			regen = true;
            		}
HXLINE(  74)		Float _hx_tmp9 = this->get_height();
HXDLIN(  74)		Float _hx_tmp10 = this->tileSprite->get_height();
HXDLIN(  74)		if ((hx::Mod(_hx_tmp9,_hx_tmp10) != (int)0)) {
HXLINE(  76)			Float _hx_tmp11 = this->get_height();
HXDLIN(  76)			Int _hx_tmp12 = ::Std_obj::_hx_int((((Float)_hx_tmp11 / (Float)spriteHeight) + (int)1));
HXDLIN(  76)			this->set_height((_hx_tmp12 * spriteHeight));
HXLINE(  77)			regen = true;
            		}
HXLINE(  80)		if (regen) {
HXLINE(  82)			Float _hx_tmp13 = this->get_width();
HXDLIN(  82)			Int _hx_tmp14 = ::Std_obj::_hx_int(_hx_tmp13);
HXDLIN(  82)			Float _hx_tmp15 = this->get_height();
HXDLIN(  82)			Int _hx_tmp16 = ::Std_obj::_hx_int(_hx_tmp15);
HXDLIN(  82)			this->makeGraphic(_hx_tmp14,_hx_tmp16,(int)0,true,null());
            		}
            		else {
HXLINE(  86)			::flixel::util::FlxSpriteUtil_obj::fill(hx::ObjectPtr<OBJ_>(this),(int)0);
            		}
HXLINE(  90)		HX_VARI( Int,row) = (int)0;
HXLINE(  91)		HX_VAR( Int,column);
HXLINE(  92)		HX_VAR( Int,destinationX);
HXLINE(  93)		HX_VARI( Int,destinationY) = (int)0;
HXLINE(  94)		Float _hx_tmp17 = this->get_width();
HXDLIN(  94)		HX_VARI( Int,widthInTiles) = ::Std_obj::_hx_int(((Float)_hx_tmp17 / (Float)spriteWidth));
HXLINE(  95)		Float _hx_tmp18 = this->get_height();
HXDLIN(  95)		HX_VARI( Int,heightInTiles) = ::Std_obj::_hx_int(((Float)_hx_tmp18 / (Float)spriteHeight));
HXLINE(  97)		while((row < heightInTiles)){
HXLINE(  99)			destinationX = (int)0;
HXLINE( 100)			column = (int)0;
HXLINE( 102)			while((column < widthInTiles)){
HXLINE( 104)				Float _hx_tmp19 = ::flixel::FlxG_obj::random->_hx_float(null(),null(),null());
HXDLIN( 104)				if (((_hx_tmp19 * total) > empties)) {
HXLINE( 106)					this->tileSprite->animation->randomFrame();
HXLINE( 107)					this->tileSprite->drawFrame(null());
HXLINE( 108)					this->stamp(this->tileSprite,destinationX,destinationY);
            				}
HXLINE( 111)				hx::AddEq(destinationX,spriteWidth);
HXLINE( 112)				++column;
            			}
HXLINE( 115)			hx::AddEq(destinationY,spriteHeight);
HXLINE( 116)			++row;
            		}
HXLINE( 119)		this->dirty = true;
HXLINE( 120)		return hx::ObjectPtr<OBJ_>(this);
            	}
示例#21
0
#endif
#ifndef INCLUDED_openfl__v2_events_IEventDispatcher
#include <openfl/_v2/events/IEventDispatcher.h>
#endif
#ifndef INCLUDED_openfl_display_StageAlign
#include <openfl/display/StageAlign.h>
#endif
#ifndef INCLUDED_openfl_display_StageScaleMode
#include <openfl/display/StageScaleMode.h>
#endif
#ifndef INCLUDED_openfl_events_FocusEvent
#include <openfl/events/FocusEvent.h>
#endif
namespace flixel{

Void FlxGame_obj::__construct(hx::Null< int >  __o_GameSizeX,hx::Null< int >  __o_GameSizeY,::Class InitialState,hx::Null< Float >  __o_Zoom,hx::Null< int >  __o_UpdateFramerate,hx::Null< int >  __o_DrawFramerate,hx::Null< bool >  __o_SkipSplash,hx::Null< bool >  __o_StartFullscreen)
{
HX_STACK_FRAME("flixel.FlxGame","new",0xde7d5f44,"flixel.FlxGame.new","flixel/FlxGame.hx",44,0x34f39fed)
HX_STACK_THIS(this)
HX_STACK_ARG(__o_GameSizeX,"GameSizeX")
HX_STACK_ARG(__o_GameSizeY,"GameSizeY")
HX_STACK_ARG(InitialState,"InitialState")
HX_STACK_ARG(__o_Zoom,"Zoom")
HX_STACK_ARG(__o_UpdateFramerate,"UpdateFramerate")
HX_STACK_ARG(__o_DrawFramerate,"DrawFramerate")
HX_STACK_ARG(__o_SkipSplash,"SkipSplash")
HX_STACK_ARG(__o_StartFullscreen,"StartFullscreen")
int GameSizeX = __o_GameSizeX.Default(640);
int GameSizeY = __o_GameSizeY.Default(480);
Float Zoom = __o_Zoom.Default(1);
int UpdateFramerate = __o_UpdateFramerate.Default(60);