package gameobjects; import java.awt.Color; import collider.*; import playground.Playground; import rendering.*; public class EgoObject extends GameObject { double egoRad = 0; public EgoObject(String id, Playground pg, double x, double y, double vx, double vy, double egoRad) { super(id, pg, x, y, vx, vy); this.egoRad = egoRad; this.artist = new CircleArtist(this, egoRad, Color.WHITE); } public GameObject generateColliders() { CircleCollider coll = new CircleCollider("coll", this, this.egoRad); this.addCollider(coll); return this; } }