Skip to content

Commit

Permalink
Landing behavior data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
TwilCynder committed Dec 10, 2024
1 parent fa47c62 commit 7e70dc9
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
2 changes: 2 additions & 0 deletions editor/javaEditor/src/gamedata/EntityAnimation.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

public class EntityAnimation extends Animation implements Iterable<Pair<Frame, EntityFrame>>{
private EntityFrame[] entity_frames;
public GameplayAnimationBehavior gab;


public EntityAnimation(String name, Image source, int nbFrames, String source_filename, String descriptor_filename) throws InvalidPathException{
super (name, source, nbFrames, source_filename, descriptor_filename);
Expand Down
43 changes: 43 additions & 0 deletions editor/javaEditor/src/gamedata/GameplayAnimationBehavior.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package gamedata;

import java.util.List;

public class GameplayAnimationBehavior {
public abstract class LandingBehavior {
private int duration;

LandingBehavior(int duration){
this.duration = duration;
}

public int getDuration() {
return duration;
}
}

public class NormalLandingBehavior extends LandingBehavior {
NormalLandingBehavior (int duration){
super (duration);
}
}

public class AnimationLandingBehavior extends LandingBehavior {
String anim_name;

AnimationLandingBehavior (int duration, String name){
super (duration);
this.anim_name = name;
}

public String getAnimName(){
return anim_name;
}
}

public class LandingBehaviorWindow {
public int frame;
public LandingBehavior behavior;
}

List<LandingBehavior> landing_behavior_windows;
}
2 changes: 1 addition & 1 deletion editor/javaEditor/src/gamedata/Move.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package gamedata;

public class Move {
public int landine_lag;
//public int landine_lag;
}

0 comments on commit 7e70dc9

Please sign in to comment.