Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package game1;
- import java.awt.image.BufferedImage;
- public class Sprite {
- private int xPos;
- private int yPos;
- private String imageFile;
- private BufferedImage image;
- public Sprite( int xSpawn, int ySpawn, enumFacing facing, int xOrigin, int yOrigin, int width, int height, String file)
- public int getXPos()
- {
- return xPos;
- }
- public void setXPos(int x)
- {
- xPos = x;
- }
- public int getYPos()
- {
- return yPos;
- }
- public void setYPos(int y)
- {
- yPos = y;
- }
- public String getImageFile()
- {
- return imageFile;
- }
- public void setImageFile(String filename)
- {
- imageFile = filename;
- }
- public BufferedImage getImage()
- {
- return image;
- }
- public void setImage(BufferedImage i)
- {
- image = i;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement