Files
2006Scape/2006Redone Server/src/main/java/com/rebotted/game/objects/Object.java
T
Damion 02b4df2666 Implementation of Gradle build framework (#369)
* Cleanup

* Add build file

* The great migration

* Restore MINA to 1.1.7

* Removed .gradle

* Added flatdir for libs with no artifact repository

* Add README.md, rename Implementation-Title
2020-02-03 17:13:57 -05:00

35 lines
664 B
Java

package com.rebotted.game.objects;
import com.rebotted.GameEngine;
public class Object {
public int objectId;
public int objectX;
public int objectY;
public int height;
public int face, faceOriginal;
public int type;
public int newId;
public int tick;
public Object(int ID, int X, int Y, int Height, int Face, int Type, int NewId, int Tick) {
Object p = GameEngine.objectManager.getObject(X, Y, Height);
if (p != null) {
if (ID == p.objectId) {
return;
}
}
objectId = ID;
objectX = X;
objectY = Y;
height = Height;
face = Face;
type = Type;
newId = NewId;
tick = Tick;
GameEngine.objectManager.addObject(this);
}
}