//----------------------------------------------------------------------------- // Behavior.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- using System; #if IPHONE using Microsoft.Xna.Framework; #else using Microsoft.Xna.Framework; #endif namespace Waypoint { /// /// Behavior is the base class for the two behaviors in this sample: linear /// and steering. It is an abstract class, leaving the implementation of /// Update up to its subclasses. /// public abstract class Behavior { // Keeps track of the tank that this behavior will modify protected Tank tank; protected Behavior(Tank tank) { this.tank = tank; tank.MoveSpeed = Tank.MaxMoveSpeed; } public abstract void Update(GameTime gameTime); } }