-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
闫茂源
committed
Apr 17, 2024
1 parent
2de6dcd
commit 7974f8f
Showing
15 changed files
with
267 additions
and
245 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
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
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
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
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
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
49 changes: 49 additions & 0 deletions
49
tmx-loader/src/main/java/io/github/jmecn/tiled/core/TilesetGrid.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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package io.github.jmecn.tiled.core; | ||
|
||
import io.github.jmecn.tiled.enums.Orientation; | ||
|
||
/** | ||
* This element is only used in case of isometric orientation, and determines how tile overlays for terrain and collision information are rendered. | ||
* | ||
* @author yanmaoyuan | ||
*/ | ||
public class TilesetGrid { | ||
/** | ||
* Orientation of the grid for the tiles in this tileset (orthogonal or isometric, defaults to orthogonal) | ||
*/ | ||
private Orientation orientation; | ||
// Width of a grid cell | ||
private int width; | ||
// Height of a grid cell | ||
private int height; | ||
|
||
public TilesetGrid(Orientation orientation, int width, int height) { | ||
this.orientation = orientation; | ||
this.width = width; | ||
this.height = height; | ||
} | ||
|
||
public Orientation getOrientation() { | ||
return orientation; | ||
} | ||
|
||
public void setOrientation(Orientation orientation) { | ||
this.orientation = orientation; | ||
} | ||
|
||
public int getWidth() { | ||
return width; | ||
} | ||
|
||
public void setWidth(int width) { | ||
this.width = width; | ||
} | ||
|
||
public int getHeight() { | ||
return height; | ||
} | ||
|
||
public void setHeight(int height) { | ||
this.height = height; | ||
} | ||
} |
Oops, something went wrong.