本文整理汇总了C++中Dynamic::Default方法的典型用法代码示例。如果您正苦于以下问题:C++ Dynamic::Default方法的具体用法?C++ Dynamic::Default怎么用?C++ Dynamic::Default使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dynamic
的用法示例。
在下文中一共展示了Dynamic::Default方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addEventListener
Void EventDispatcher_obj::addEventListener( ::String type,Dynamic listener,Dynamic __o_useCapture,Dynamic __o_priority,Dynamic __o_useWeakReference){
bool useCapture = __o_useCapture.Default(false);
int priority = __o_priority.Default(0);
bool useWeakReference = __o_useWeakReference.Default(false);
HX_SOURCE_PUSH("EventDispatcher_obj::addEventListener");
{
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/EventDispatcher.hx",24)
if (((this->nmeEventMap == null()))){
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/EventDispatcher.hx",25)
this->nmeEventMap = ::Hash_obj::__new();
}
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/EventDispatcher.hx",26)
Array< ::nme::events::Listener > list = this->nmeEventMap->get(type);
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/EventDispatcher.hx",27)
if (((list == null()))){
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/EventDispatcher.hx",29)
list = Array_obj< ::nme::events::Listener >::__new();
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/EventDispatcher.hx",30)
this->nmeEventMap->set(type,list);
}
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/EventDispatcher.hx",33)
::nme::events::Listener l = ::nme::events::Listener_obj::__new(listener,useCapture,priority);
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/EventDispatcher.hx",34)
list->push(l);
}
return null();
}
示例2: __construct
Void IOErrorEvent_obj::__construct(::String inType,Dynamic __o_bubbles,Dynamic __o_cancelable,Dynamic __o_text,Dynamic __o_id)
{
bool bubbles = __o_bubbles.Default(true);
bool cancelable = __o_cancelable.Default(false);
::String text = __o_text.Default(HX_CSTRING(""));
int id = __o_id.Default(0);
{
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/IOErrorEvent.hx",13)
super::__construct(inType,bubbles,cancelable,text,id);
}
;
return null();
}
示例3: __construct
Void TextEvent_obj::__construct(::String type,Dynamic __o_bubbles,Dynamic __o_cancelable,Dynamic __o_inText)
{
bool bubbles = __o_bubbles.Default(false);
bool cancelable = __o_cancelable.Default(false);
::String inText = __o_inText.Default(HX_CSTRING(""));
{
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/TextEvent.hx",12)
super::__construct(type,bubbles,cancelable);
HX_SOURCE_POS("C:\\Motion-Twin\\haxe\\dev\\nme/nme/events/TextEvent.hx",13)
this->text = inText;
}
;
return null();
}
示例4: __construct
Void StunGun_obj::__construct(::String Name,::flixel::FlxSprite ParentRef,::Class BulletType,Dynamic __o_BulletID)
{
HX_STACK_FRAME("StunGun","new",0xaae1b538,"StunGun.new","StunGun.hx",14,0xf9e0d938)
HX_STACK_THIS(this)
HX_STACK_ARG(Name,"Name")
HX_STACK_ARG(ParentRef,"ParentRef")
HX_STACK_ARG(BulletType,"BulletType")
HX_STACK_ARG(__o_BulletID,"BulletID")
Dynamic BulletID = __o_BulletID.Default(0);
{
HX_STACK_LINE(15)
super::__construct(Name,ParentRef,BulletType,BulletID);
HX_STACK_LINE(17)
::flixel::system::FlxSound _g = ::flixel::FlxG_obj::sound->load(HX_CSTRING("assets/sounds/stunGun.mp3"),null(),null(),null(),null(),null(),null()); HX_STACK_VAR(_g,"_g");
HX_STACK_LINE(17)
this->_shootSnd = _g;
HX_STACK_LINE(18)
this->makeImageBullet((int)2,HX_CSTRING("assets/temp/beam.png"),(int)0,(int)0,true,(int)360,(int)1,null(),null());
HX_STACK_LINE(19)
::flixel::util::FlxRect _g1 = ::flixel::util::FlxRect_obj::__new((int)0,(int)0,(int)3000,(int)3000); HX_STACK_VAR(_g1,"_g1");
HX_STACK_LINE(19)
this->setBulletBounds(_g1);
HX_STACK_LINE(20)
this->setFireRate((int)100);
HX_STACK_LINE(21)
this->rndFactorAngle = (int)20;
HX_STACK_LINE(22)
this->setBulletDirection((int)360,(int)400);
HX_STACK_LINE(23)
this->setBulletLifeSpan(0.2);
}
;
return null();
}
示例5: __construct
Void RangeError_obj::__construct(Dynamic __o_inMessage)
{
::String inMessage = __o_inMessage.Default(HX_CSTRING(""));
{
HX_SOURCE_POS("/usr/lib/haxe/lib/nme/trunk/nme/errors/RangeError.hx",7)
super::__construct(inMessage,(int)0);
}
;
return null();
}
示例6: createStaticMethod
Dynamic JNI_obj::createStaticMethod( ::String className,::String memberName,::String signature,Dynamic __o_useArray){
bool useArray = __o_useArray.Default(false);
HX_SOURCE_PUSH("JNI_obj::createStaticMethod");
{
HX_SOURCE_POS("/usr/lib/haxe/lib/nme/3,1,1/nme/JNI.hx",56)
::nme::JNIMethod method = ::nme::JNIMethod_obj::__new(::nme::JNI_obj::nme_jni_create_method(className,memberName,signature,true));
HX_SOURCE_POS("/usr/lib/haxe/lib/nme/3,1,1/nme/JNI.hx",57)
return method->getStaticMethod(useArray);
}
}
示例7: __construct
Void FocusEvent_obj::__construct(::String inType,Dynamic __o_bubbles,Dynamic __o_cancelable,::nme::display::InteractiveObject inRelatedObject,Dynamic __o_inShiftKey,Dynamic __o_inKeyCode,Dynamic __o_inDirection)
{
bool bubbles = __o_bubbles.Default(true);
bool cancelable = __o_cancelable.Default(false);
bool inShiftKey = __o_inShiftKey.Default(false);
int inKeyCode = __o_inKeyCode.Default(0);
::String inDirection = __o_inDirection.Default(HX_CSTRING("none"));
{
HX_SOURCE_POS("/usr/lib/haxe/lib/nme/trunk/nme/events/FocusEvent.hx",20)
super::__construct(inType,bubbles,cancelable);
HX_SOURCE_POS("/usr/lib/haxe/lib/nme/trunk/nme/events/FocusEvent.hx",21)
this->relatedObject = inRelatedObject;
HX_SOURCE_POS("/usr/lib/haxe/lib/nme/trunk/nme/events/FocusEvent.hx",22)
this->keyCode = inKeyCode;
HX_SOURCE_POS("/usr/lib/haxe/lib/nme/trunk/nme/events/FocusEvent.hx",23)
this->shiftKey = inShiftKey;
}
;
return null();
}