public static void onMove(BloonEvents.MoveEvent e) { IBloonEntity bloon = e.getBloon(); //Logger.Log("Progress: "+bloon.getProgress()); float[] pos = bloon.getPosition(); //Logger.Log("Position (X,Y,Z)".Replace("X", pos[0].ToString()).Replace("Y", pos[1].ToString()).Replace("Z", pos[2].ToString())); if (bloon.getProgress() > 500) { e.SetCancelled(true); } }
public DamagedEvent(IBloonEntity bloon, float totalAmount, string[] types, IProjectileEntity projectile, bool distributeToChildren, bool overrideDistributeBlocker, bool createEffect, ITowerEntity tower, bool canDestroyProjectile, string[] ignoreImmunityForBloonTypes, bool ignoreNonTargetable, bool blockSpawnChildren) : base() { this.bloon = bloon; this.damageTaken = totalAmount; this.damageTypes = types; this.projectile = projectile; this.distrubuteToChildren = distributeToChildren; this.overrideDistributeBlocker = overrideDistributeBlocker; this.createEffect = createEffect; this.tower = tower; this.canDestroyProjectile = canDestroyProjectile; this.ignoreImmunityForBloonTypes = ignoreImmunityForBloonTypes; this.ignoreNonTargetables = ignoreNonTargetable; this.blockSpawnChildren = blockSpawnChildren; }
public static void onMove(BloonEvents.MoveEvent e) // Create the function { IBloonEntity bloon = e.GetBloon(); // Get the bloon if (bloon is GreenCamoBloon) // Check if the bloon is Green and Camo { float prog = bloon.GetProgress(); // Get the bloon's progress if (prog > 500.0f) // If the progress is over 500 { e.SetCancelled(true); // Cancel the event (The bloon will not move) } } else { if (bloon.GetProgress() > 1000.0f) // If the progress is over 1000 { e.SetCancelled(true); // Cancel the event } } }
public LeakedEvent(IBloonEntity bloon) : base() { this.bloon = bloon; }
public MoveEvent(IBloonEntity bloon) : base() { this.bloon = bloon; }
public static void onRotate(BloonEvents.RotateEvent e) { IBloonEntity bloon = e.getBloon(); Logger.Log(bloon.getRotation().ToString()); }
public DeletedEvent(IBloonEntity bloon) : base() { this.bloon = bloon; }
public CreatedEvent(IBloonEntity bloon) : base() { this.bloon = bloon; }
public RotateEvent(IBloonEntity bloon, float rotation) : base() { this.bloon = bloon; this.rotation = rotation; }