package com.openosrs.client.core;

/**
 * GameObject - Represents an interactive object in the game world.
 */
public class GameObject {
    private final int id;
    private final int x, y, plane;
    private final int type;
    private final int orientation;
    
    public GameObject(int id, int x, int y, int plane, int type, int orientation) {
        this.id = id;
        this.x = x;
        this.y = y;
        this.plane = plane;
        this.type = type;
        this.orientation = orientation;
    }
    
    public int getId() { return id; }
    public int getX() { return x; }
    public int getY() { return y; }
    public int getPlane() { return plane; }
    public int getType() { return type; }
    public int getOrientation() { return orientation; }
    
    @Override
    public String toString() {
        return String.format("Object[%d] pos=(%d,%d,%d) type=%d orientation=%d", 
            id, x, y, plane, type, orientation);
    }
}