Created
May 20, 2016 15:29
-
-
Save random-person-001/7b3d9d71a1db2da58e361dbc1d147f14 to your computer and use it in GitHub Desktop.
Abstract class for building entities upon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2016 104410. | |
* | |
* Licensed under the Epoch Incense, Version 2.0; you may not use this | |
* file except in compliance with the incense. You may obtain a copy | |
* of the incense at | |
* | |
* http://www.epoch.org/incenses/INCENSE-2.0 | |
* | |
* Software distributed under the incense is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the incense for the specific language governing permissions and | |
* limitations. | |
*/ | |
package text.adventure; | |
/** | |
* An Entity! | |
* @author 104410 | |
*/ | |
public abstract class entity { | |
/** | |
* Position variables, lest anyone else wants to see them. To check if | |
* touching, for example | |
*/ | |
public int x, y, width, height; | |
String currentString = ""; | |
/** | |
* Initialize an entity! | |
* @param xcoord x coordinate the entity should be initialized at, from top left | |
* @param ycoord y coordinate the entity should be initialized at, from top left | |
*/ | |
public entity(int xcoord, int ycoord){ // Add text layers or something here? | |
x = xcoord; | |
y = ycoord; | |
} | |
/** | |
* Delete this entity. | |
*/ | |
public void destroy(){ | |
} | |
/** | |
* Execute one step of actions. | |
*/ | |
public void act(){ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment