Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Shooter.Controllers
- {
- public static class BehaviorController
- {
- public static void BehaviorSwitch(BehaviorType type, IHasBehavior entity)
- {
- switch (type)
- {
- case BehaviorType.RANDOM:
- RandomBehavior(entity);
- break;
- case BehaviorType.AVOID:
- AvoidBehavior(entity);
- break;
- case BehaviorType.CHASE:
- ChaseBehavior(entity);
- break;
- }
- }
- private static void RandomBehavior(IHasBehavior entity)
- {
- throw new NotImplementedException();
- }
- private static void ChaseBehavior(IHasBehavior entity)
- {
- throw new NotImplementedException();
- }
- private static void AvoidBehavior(IHasBehavior entity)
- {
- throw new NotImplementedException();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement