40 lines
1.1 KiB
ActionScript
40 lines
1.1 KiB
ActionScript
package net.pixvi.myr.center
|
|
{
|
|
import net.pixvi.common.center.SoundCenter;
|
|
import net.pixvi.myr.battle.view.BattleMonBuff;
|
|
import net.pixvi.myr.element.snd.GameSound;
|
|
import net.pixvi.pfw.utils.core.Singleton;
|
|
|
|
public class BuffCenter extends Singleton
|
|
{
|
|
|
|
public function BuffCenter()
|
|
{
|
|
super();
|
|
}
|
|
|
|
public static function makeIns() : BuffCenter
|
|
{
|
|
return Singleton.getInstanceOrCreate(Singleton);
|
|
}
|
|
|
|
public static function getStunMovByType(buff:BattleMonBuff, stunType:int, time:int) : void
|
|
{
|
|
switch(stunType - 1)
|
|
{
|
|
case 0:
|
|
buff.addBuffMov("mov.BuffStun","stun",time * 1000,1,24,1,0,0,true);
|
|
break;
|
|
case 1:
|
|
SoundCenter.getIns().play(GameSound.effect_skill_icehit);
|
|
buff.addBuffMov("mov.BuffIce","ice",time * 1000,1.4,20,0,0,0,true,true);
|
|
}
|
|
}
|
|
|
|
public static function getPoiMovByType(buff:BattleMonBuff, atkStunType:int, atkStunTime:int) : void
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|