/******************************************************************************* * Copyright (c) 2013 Philip Collin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html * * Contributors: * Philip Collin - initial API and implementation ******************************************************************************/ package com.lyeeedar.Roguelike3D.Game.Actor; import java.io.Serializable; public abstract class AI_Package implements Serializable { private static final long serialVersionUID = -4386924950201938705L; protected transient GameActor actor; public final String actorUID; public AI_Package(GameActor actor) { this.actor = actor; this.actorUID = actor.UID; } public abstract void evaluateAI(float delta); public void fixReferences(GameActor actor) { this.actor = actor; } }