You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ . |
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌· |
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀ |
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌ |
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀ |
|
// Magicbane Emulator Project © 2013 - 2022 |
|
// www.magicbane.com |
|
|
|
|
|
package engine.jobs; |
|
|
|
import engine.gameManager.CombatManager; |
|
import engine.job.AbstractJob; |
|
import engine.objects.AbstractCharacter; |
|
|
|
public class AttackJob extends AbstractJob { |
|
|
|
private final AbstractCharacter source; |
|
private final int slot; |
|
private final boolean success; |
|
|
|
public AttackJob(AbstractCharacter source, int slot, boolean success) { |
|
super(); |
|
this.source = source; |
|
this.slot = slot; |
|
this.success = success; |
|
} |
|
|
|
@Override |
|
protected void doJob() { |
|
CombatManager.doCombat(this.source, slot); |
|
} |
|
|
|
public boolean success() { |
|
return this.success; |
|
} |
|
protected void _cancelJob() { |
|
} |
|
} |