// Path: core/src/main/java/org/flightclub/compat/Color.java
// public class Color {
//     private final java.awt.Color c;
// 
// 
//     /**
//      * The color white.  In the default sRGB space.
//      */
//     public final static Color WHITE = new Color(255, 255, 255);
// 
//     /**
//      * The color light gray.  In the default sRGB space.
//      */
//     public final static Color LIGHT_GRAY = new Color(192, 192, 192);
// 
//     /**
//      * The color gray.  In the default sRGB space.
//      */
//     public final static Color GRAY = new Color(128, 128, 128);
// 
//     /**
//      * The color dark gray.  In the default sRGB space.
//      */
//     public final static Color DARK_GRAY = new Color(64, 64, 64);
// 
//     /**
//      * The color black.  In the default sRGB space.
//      */
//     public final static Color BLACK = new Color(0, 0, 0);
// 
//     /**
//      * The color red.  In the default sRGB space.
//      */
//     public final static Color RED = new Color(255, 0, 0);
// 
//     /**
//      * The color pink.  In the default sRGB space.
//      */
//     public final static Color PINK = new Color(255, 175, 175);
// 
//     /**
//      * The color orange.  In the default sRGB space.
//      */
//     public final static Color ORANGE = new Color(255, 200, 0);
// 
//     /**
//      * The color yellow.  In the default sRGB space.
//      */
//     public final static Color YELLOW = new Color(255, 255, 0);
// 
//     /**
//      * The color green.  In the default sRGB space.
//      */
//     public final static Color GREEN = new Color(0, 255, 0);
// 
//     /**
//      * The color magenta.  In the default sRGB space.
//      */
//     public final static Color MAGENTA = new Color(255, 0, 255);
// 
//     /**
//      * The color cyan.  In the default sRGB space.
//      */
//     public final static Color CYAN = new Color(0, 255, 255);
// 
//     /**
//      * The color blue.  In the default sRGB space.
//      */
//     public final static Color BLUE = new Color(0, 0, 255);
// 
//     public Color(int r, int g, int b) {
//         this.c = new java.awt.Color(r, g, b);
//     }
// 
//     public java.awt.Color getColor() {
//         return c;
//     }
// 
//     public int getRed() {
//         return c.getRed();
//     }
// 
//     public int getGreen() {
//         return c.getGreen();
//     }
// 
//     public int getBlue() {
//         return c.getBlue();
//     }
// }
// 
// Path: core/src/main/java/org/flightclub/compat/Font.java
// public class Font {
//     private java.awt.Font f;
// 
//     /**
//      * The plain style constant.
//      */
//     public static final int PLAIN       = 0;
// 
//     /**
//      * The bold style constant.  This can be combined with the other style
//      * constants (except PLAIN) for mixed styles.
//      */
//     public static final int BOLD        = 1;
// 
//     /**
//      * The italicized style constant.  This can be combined with the other
//      * style constants (except PLAIN) for mixed styles.
//      */
//     public static final int ITALIC      = 2;
// 
//     public Font(String name, int style, int size) {
//         this(new java.awt.Font(name, style, size));
//     }
// 
//     public Font(java.awt.Font f) {
//         this.f = f;
//     }
// 
//     public java.awt.Font getFont() {
//         return f;
//     }
// }
// 
// Path: core/src/main/java/org/flightclub/compat/Graphics.java
// public interface Graphics {
//     void setColor(Color color);
//     void setFont(Font font);
// 
//     void drawLine(int x1, int y1, int x2, int y2);
//     void drawString(String str, int x, int y);
// 
//     void fillCircle(int x, int y, int diameter);
//     void fillPolygon(int[] xPoints, int[] yPoints, int nPoints);
// }


import org.flightclub.compat.Color;
import org.flightclub.compat.Font;
import org.flightclub.compat.Graphics;
import java.awt.event.KeyEvent;
import java.util.Vector;

                return;
            case KeyEvent.VK_3:
                cameraMan.setMode(CameraMan.Mode.PLAN);
                return;
            case KeyEvent.VK_4:
                cameraMan.setMode(CameraMan.Mode.TILE);
                return;

            default:
        }
    }

    @Override
    public void keyReleased(KeyEvent e) {
    }

    public void draw(Graphics g, int width, int height) {
        //TODO optimize - build vector of objs in FOV, need only draw these
        cameraMan.setMatrix();

        obj3dManager.sortObjects();
        for (ObjectLayer layer : obj3dManager.layers) {
            for (Object3d object : layer) {
                object.film(cameraMan);
                object.draw(g);
            }
        }

        //Text
        if (textMessage != null) {

// Path: core/src/main/java/org/flightclub/compat/Color.java
// public class Color {
//     private final java.awt.Color c;
// 
// 
//     /**
//      * The color white.  In the default sRGB space.
//      */
//     public final static Color WHITE = new Color(255, 255, 255);
// 
//     /**
//      * The color light gray.  In the default sRGB space.
//      */
//     public final static Color LIGHT_GRAY = new Color(192, 192, 192);
// 
//     /**
//      * The color gray.  In the default sRGB space.
//      */
//     public final static Color GRAY = new Color(128, 128, 128);
// 
//     /**
//      * The color dark gray.  In the default sRGB space.
//      */
//     public final static Color DARK_GRAY = new Color(64, 64, 64);
// 
//     /**
//      * The color black.  In the default sRGB space.
//      */
//     public final static Color BLACK = new Color(0, 0, 0);
// 
//     /**
//      * The color red.  In the default sRGB space.
//      */
//     public final static Color RED = new Color(255, 0, 0);
// 
//     /**
//      * The color pink.  In the default sRGB space.
//      */
//     public final static Color PINK = new Color(255, 175, 175);
// 
//     /**
//      * The color orange.  In the default sRGB space.
//      */
//     public final static Color ORANGE = new Color(255, 200, 0);
// 
//     /**
//      * The color yellow.  In the default sRGB space.
//      */
//     public final static Color YELLOW = new Color(255, 255, 0);
// 
//     /**
//      * The color green.  In the default sRGB space.
//      */
//     public final static Color GREEN = new Color(0, 255, 0);
// 
//     /**
//      * The color magenta.  In the default sRGB space.
//      */
//     public final static Color MAGENTA = new Color(255, 0, 255);
// 
//     /**
//      * The color cyan.  In the default sRGB space.
//      */
//     public final static Color CYAN = new Color(0, 255, 255);
// 
//     /**
//      * The color blue.  In the default sRGB space.
//      */
//     public final static Color BLUE = new Color(0, 0, 255);
// 
//     public Color(int r, int g, int b) {
//         this.c = new java.awt.Color(r, g, b);
//     }
// 
//     public java.awt.Color getColor() {
//         return c;
//     }
// 
//     public int getRed() {
//         return c.getRed();
//     }
// 
//     public int getGreen() {
//         return c.getGreen();
//     }
// 
//     public int getBlue() {
//         return c.getBlue();
//     }
// }
// 
// Path: core/src/main/java/org/flightclub/compat/Font.java
// public class Font {
//     private java.awt.Font f;
// 
//     /**
//      * The plain style constant.
//      */
//     public static final int PLAIN       = 0;
// 
//     /**
//      * The bold style constant.  This can be combined with the other style
//      * constants (except PLAIN) for mixed styles.
//      */
//     public static final int BOLD        = 1;
// 
//     /**
//      * The italicized style constant.  This can be combined with the other
//      * style constants (except PLAIN) for mixed styles.
//      */
//     public static final int ITALIC      = 2;
// 
//     public Font(String name, int style, int size) {
//         this(new java.awt.Font(name, style, size));
//     }
// 
//     public Font(java.awt.Font f) {
//         this.f = f;
//     }
// 
//     public java.awt.Font getFont() {
//         return f;
//     }
// }
// 
// Path: core/src/main/java/org/flightclub/compat/Graphics.java
// public interface Graphics {
//     void setColor(Color color);
//     void setFont(Font font);
// 
//     void drawLine(int x1, int y1, int x2, int y2);
//     void drawString(String str, int x, int y);
// 
//     void fillCircle(int x, int y, int diameter);
//     void fillPolygon(int[] xPoints, int[] yPoints, int nPoints);
// }


// Path: core/src/main/java/org/flightclub/XCGame.java
import org.flightclub.compat.Color;
import org.flightclub.compat.Font;
import org.flightclub.compat.Graphics;
import java.awt.event.KeyEvent;
import java.util.Vector;

                return;
            case KeyEvent.VK_3:
                cameraMan.setMode(CameraMan.Mode.PLAN);
                return;
            case KeyEvent.VK_4:
                cameraMan.setMode(CameraMan.Mode.TILE);
                return;

            default:
        }
    }

    @Override
    public void keyReleased(KeyEvent e) {
    }

    public void draw(Graphics g, int width, int height) {
        //TODO optimize - build vector of objs in FOV, need only draw these
        cameraMan.setMatrix();

        obj3dManager.sortObjects();
        for (ObjectLayer layer : obj3dManager.layers) {
            for (Object3d object : layer) {
                object.film(cameraMan);
                object.draw(g);
            }
        }

        //Text
        if (textMessage != null) {

            Font font = new Font("SansSerif", Font.PLAIN, 10);
