Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. package game1;
  2.  
  3. import java.awt.image.BufferedImage;
  4.  
  5. public class Sprite {
  6.    
  7.     private int xPos;
  8.     private int yPos;
  9.     private String imageFile;
  10.     private BufferedImage image;
  11.    
  12.    
  13.     public Sprite( int xSpawn, int ySpawn, enumFacing facing, int xOrigin, int yOrigin, int width, int height, String file)
  14.    
  15.     public int getXPos()
  16.     {
  17.         return xPos;
  18.     }
  19.    
  20.     public void setXPos(int x)
  21.     {
  22.         xPos = x;
  23.     }
  24.    
  25.     public int getYPos()
  26.     {
  27.         return yPos;
  28.     }
  29.    
  30.     public void setYPos(int y)
  31.     {
  32.         yPos = y;
  33.     }
  34.    
  35.     public String getImageFile()
  36.     {
  37.         return imageFile;
  38.     }
  39.    
  40.     public void setImageFile(String filename)
  41.     {
  42.         imageFile = filename;
  43.     }
  44.    
  45.     public BufferedImage getImage()
  46.     {
  47.         return image;
  48.     }
  49.    
  50.     public void setImage(BufferedImage i)
  51.     {
  52.         image = i;
  53.     }
  54.    
  55.  
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement