Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Color;
- import java.awt.Point;
- import java.awt.Rectangle;
- import java.util.HashMap;
- public class GraphicsObject {
- Point center;
- GraphicsObjectConfiguration.config config;
- HashMap<Point, Color> configuration;
- Rectangle boundry;
- String type;
- int sizex;
- int sizey;
- // CONFIGURATION HASHMAPS
- // FOR EVERY RELATIVE POINT FOUND RETURN A COLOR
- public GraphicsObject(GraphicsObjectConfiguration goc,String t,Point centerpoint,int sx,int sy)
- {
- goc.AddGraphicsObject(this);
- sizex=sx;
- sizey=sy;
- type=t;
- center=centerpoint;
- if(!type.equals("StaticParticles"))
- {
- config = goc.get(t);
- configuration = config.configuration;
- }
- else
- {
- }
- }
- }
Add Comment
Please, Sign In to add comment