-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed target entity from all boss creation parameters because it wa…
…s redundant and made a new createDemonBoss method in MobBossFactory
- Loading branch information
1 parent
01b5ed4
commit c3d57c1
Showing
3 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 15 additions & 2 deletions
17
source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossMovementTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
package com.csse3200.game.components.tasks.bosstask; | ||
|
||
import com.badlogic.gdx.math.Vector2; | ||
import com.csse3200.game.ai.tasks.DefaultTask; | ||
import com.csse3200.game.ai.tasks.PriorityTask; | ||
import com.csse3200.game.components.tasks.MovementTask; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class DemonBossMovementTask extends DefaultTask implements PriorityTask { | ||
|
||
private static final Logger logger = LoggerFactory.getLogger(DemonBossMovementTask.class); | ||
private int priority; | ||
private static final int PRIORITY = 3; | ||
private Vector2 currentPos; | ||
private MovementTask movementTask; | ||
|
||
private enum STATE { | ||
WALK, JUMP, IDLE | ||
} | ||
private STATE demonState = STATE.IDLE; | ||
|
||
public DemonBossMovementTask() { | ||
|
||
} | ||
@Override | ||
public int getPriority() { | ||
return this.priority; | ||
return PRIORITY; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters