本文整理汇总了C++中object::Charge方法的典型用法代码示例。如果您正苦于以下问题:C++ object::Charge方法的具体用法?C++ object::Charge怎么用?C++ object::Charge使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类object
的用法示例。
在下文中一共展示了object::Charge方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Launch
func Launch(object clonk, int x, int y)
{
var params = {
angle = Angle(0,0,x,y),
cl = clonk
};
clonk->Charge(this, "ChargeStop", Charge_dur, params);
SetAction("Travel");
SetClrModulation(RGBa(255,255,255,0));
}
示例2: Launch
func Launch(object clonk, int x, int y)
{
shooter = clonk;
SetController(clonk->GetOwner());
TargetAngle = Angle(0, 0, x, y);
ImaCharginMaLazor(0, 0, Sin(TargetAngle, MaxLength), Cos(TargetAngle, MaxLength) * -1, TargetAngle);
clonk->Charge(this, "ChargeStop", ChargeDuration, {});
AddEffect("PreLazor", this, 1, 2, this, nil);
Sound("Flash::charge", nil, nil, nil, nil, nil, 20);
}
示例3: Launch
func Launch(object clonk, int x, int y)
{
//var marker = CreateObject(Icon_Cancel, clonk->GetX() + x - GetX(), clonk->GetY() + y - GetY() + 16, GetOwner());
//marker.Visibility = VIS_Owner;
//marker->SetClrModulation(RGBa(255,255,255,100));
var params = {
angle = Angle(0,0,x,y, angle_prec),
clonk = clonk,
x = x,
y = y,
//marker = marker
};
clonk->Charge(this, "ChargeStop", Charge_dur, params);
}