测试版
This commit is contained in:
parent
6a3435a852
commit
cdf96c920b
|
@ -0,0 +1,19 @@
|
||||||
|
package com.yaohun.enderdragonWars.effectevent;
|
||||||
|
|
||||||
|
import com.yaohun.enderdragonWars.effect.GiftEffect;
|
||||||
|
import com.yaohun.enderdragonWars.game.Game;
|
||||||
|
|
||||||
|
public class BomBomEffect extends GiftEffect {
|
||||||
|
|
||||||
|
public BomBomEffect(String audience) {
|
||||||
|
super(audience);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void apply(Game game) {
|
||||||
|
/*
|
||||||
|
* 参考群内视频 火山喷发
|
||||||
|
* */
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
package com.yaohun.enderdragonWars.manage;
|
package com.yaohun.enderdragonWars.manage;
|
||||||
|
|
||||||
|
import com.yaohun.enderdragonWars.effectevent.BomBomEffect;
|
||||||
import com.yaohun.enderdragonWars.effectevent.ClearInvEffect;
|
import com.yaohun.enderdragonWars.effectevent.ClearInvEffect;
|
||||||
import com.yaohun.enderdragonWars.effect.GiftEffect;
|
import com.yaohun.enderdragonWars.effect.GiftEffect;
|
||||||
import com.yaohun.enderdragonWars.effect.GiftQueue;
|
import com.yaohun.enderdragonWars.effect.GiftQueue;
|
||||||
|
@ -41,6 +42,7 @@ public class GiftEffectManager {
|
||||||
|
|
||||||
public static void registerAll() {
|
public static void registerAll() {
|
||||||
registerGiftEffect("清理背包", ClearInvEffect::new);
|
registerGiftEffect("清理背包", ClearInvEffect::new);
|
||||||
|
registerGiftEffect("火山喷发", BomBomEffect::new);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerGiftEffect(String id, Function<String, GiftEffect> giftEffectGetter) {
|
private static void registerGiftEffect(String id, Function<String, GiftEffect> giftEffectGetter) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user