root/src/BRAINSFramework/Behaviors/IBehavior.cs

User picture

Author: conkerjo

Revision: 30 («Previous)


File Size: 463 Bytes

(July 05, 2009 18:01 UTC) Almost 3 years ago

Behavior Refactoring

 
Show/hide line numbers

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Brains.Framework.Behaviors
{
    public interface IBehavior
    {
        Agent Owner { get; }
        BehaviorState State { get; set; }
        
        void SetOwner(Agent owner);
        void Update(GameTime gameTime);
        void OnSuccess();
        void OnFailure();
        void Reset();
    }
    
}