Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.02 KB | None | 0 0
  1. namespace Shooter.Controllers
  2. {
  3.     public static class BehaviorController
  4.     {
  5.  
  6.  
  7.         public static void BehaviorSwitch(BehaviorType type, IHasBehavior entity)
  8.         {
  9.             switch (type)
  10.             {
  11.                 case BehaviorType.RANDOM:
  12.                     RandomBehavior(entity);
  13.                     break;
  14.                 case BehaviorType.AVOID:
  15.                     AvoidBehavior(entity);
  16.                     break;
  17.                 case BehaviorType.CHASE:
  18.                     ChaseBehavior(entity);
  19.                     break;
  20.             }
  21.         }
  22.        
  23.        
  24.         private static void RandomBehavior(IHasBehavior entity)
  25.         {
  26.             throw new NotImplementedException();
  27.         }
  28.  
  29.         private static void ChaseBehavior(IHasBehavior entity)
  30.         {
  31.             throw new NotImplementedException();
  32.         }
  33.  
  34.         private static void AvoidBehavior(IHasBehavior entity)
  35.         {
  36.             throw new NotImplementedException();
  37.         }
  38.        
  39.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement