00001 // 00002 // Camera.java 00003 // CGP-2D-Engine 00004 // 00005 // Created by Ryan Ruff on 4/21/09. 00006 // Copyright 2009 ClassroomGamingProject.org. All rights reserved. 00007 // 00008 // This program is free software: you can redistribute it and/or modify 00009 // it under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation, either version 3 of the License, or 00011 // (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with this program. If not, see <http://www.gnu.org/licenses/>. 00020 package org.classroomgaming.cgp; 00021 00029 public class Camera { 00030 00031 private float xpos; 00032 private float ypos; 00033 00034 public Camera(float x, float y) { 00035 xpos = x; 00036 ypos = y; 00037 } 00038 00039 public float getX() { 00040 return xpos; 00041 } 00042 00043 public void setX(float x) { 00044 xpos = x; 00045 } 00046 00047 public float getY() { 00048 return ypos; 00049 } 00050 00051 public void setY(float y) { 00052 ypos = y; 00053 } 00054 }
1.5.8