Edgardo Palza преди 8 години
родител
ревизия
caa8ede22e

BIN
bin/ui/controller/cpsObj.class


BIN
bin/ui/model/Model.class


BIN
bin/ui/view/CpsInit.class


BIN
bin/ui/view/GUI$1.class


BIN
bin/ui/view/GUI$2.class


BIN
bin/ui/view/GUI.class


BIN
bin/ui/view/MyCanvas.class


+ 67 - 0
src/ui/controller/cpsObj.java

@@ -0,0 +1,67 @@
+package ui.controller;
+
+abstract class cpsObj {
+	/*Type of the Object*/
+	String objName;
+	/*Name given by the user*/
+	String name;
+	/*ID of the Obj.*/
+	int ID;
+	/*Path of the image for the Obj.*/
+	String image;
+	/*Array of neighbors*/
+	cpsObj[] connectedTo;
+	/*Position with a X and Y value*/
+	int xCoord;
+	int yCoord;
+	
+	/*Obj type*/
+	public String getObjName() {
+		return objName;
+	}
+	public void setObjName(String objName) {
+		this.objName = objName;
+	}
+	/*User defined Name*/
+	public String getName() {
+		return name;
+	}
+	public void setName(String name) {
+		this.name = name;
+	}
+	/*Unique ID number*/
+	public int getID() {
+		return ID;
+	}
+	public void setID(int iD) {
+		ID = iD;
+	}
+	/*Image path*/
+	public String getImage() {
+		return image;
+	}
+	public void setImage(String image) {
+		this.image = image;
+	}
+	/*Neighbors array*/
+	public cpsObj[] getConnectedTo() {
+		return connectedTo;
+	}
+	public void setConnectedTo(cpsObj[] connectedTo) {
+		this.connectedTo = connectedTo;
+	}
+	/*Position (x and Y)*/
+	public int getxCoord() {
+		return xCoord;
+	}
+	public void setxCoord(int xCoord) {
+		this.xCoord = xCoord;
+	}
+	public int getyCoord() {
+		return yCoord;
+	}
+	public void setyCoord(int yCoord) {
+		this.yCoord = yCoord;
+	}
+	
+}

+ 0 - 4
src/ui/model/Model.java

@@ -1,9 +1,5 @@
 package ui.model;
 
-/**
- * 
- *
- */
 public class Model {
 
 }

+ 0 - 9
src/ui/view/CpsInit.java

@@ -1,9 +0,0 @@
-package ui.view;
-
-/**
- * Initialize the program
- *
- */
-public class CpsInit {
-	
-}