Raycaster

Horse.java

Mar 1st, 2021
703
315 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.planet_ink.coffee_mud.Races;
  2. import com.planet_ink.coffee_mud.core.interfaces.*;
  3. import com.planet_ink.coffee_mud.core.*;
  4. import com.planet_ink.coffee_mud.core.collections.*;
  5. import com.planet_ink.coffee_mud.Abilities.interfaces.*;
  6. import com.planet_ink.coffee_mud.Areas.interfaces.*;
  7. import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
  8. import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
  9. import com.planet_ink.coffee_mud.Commands.interfaces.*;
  10. import com.planet_ink.coffee_mud.Common.interfaces.*;
  11. import com.planet_ink.coffee_mud.Exits.interfaces.*;
  12. import com.planet_ink.coffee_mud.Items.interfaces.*;
  13. import com.planet_ink.coffee_mud.Libraries.interfaces.*;
  14. import com.planet_ink.coffee_mud.Locales.interfaces.*;
  15. import com.planet_ink.coffee_mud.MOBS.interfaces.*;
  16. import com.planet_ink.coffee_mud.Races.interfaces.*;
  17.  
  18. import java.util.*;
  19.  
  20. /*
  21.    Copyright 2002-2021 Bo Zimmerman
  22.  
  23.    Licensed under the Apache License, Version 2.0 (the "License");
  24.    you may not use this file except in compliance with the License.
  25.    You may obtain a copy of the License at
  26.  
  27.        http://www.apache.org/licenses/LICENSE-2.0
  28.  
  29.    Unless required by applicable law or agreed to in writing, software
  30.    distributed under the License is distributed on an "AS IS" BASIS,
  31.    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  32.    See the License for the specific language governing permissions and
  33.    limitations under the License.
  34. */
  35. public class Horse extends Equine
  36. {
  37.     @Override
  38.     public String ID()
  39.     {
  40.         return "Horse";
  41.     }
  42.  
  43.     private final static String localizedStaticName = CMLib.lang().L("Horse");
  44.  
  45.     @Override
  46.     public String name()
  47.     {
  48.         return localizedStaticName;
  49.     }
  50.  
  51.     @Override
  52.     public String makeMobName(final char gender, final int age)
  53.     {
  54.         switch(age)
  55.         {
  56.             case Race.AGE_INFANT:
  57.             case Race.AGE_TODDLER:
  58.                 return "foal";
  59.             case Race.AGE_CHILD:
  60.             case Race.AGE_YOUNGADULT:
  61.                 switch(gender)
  62.                 {
  63.                 case 'M':
  64.                 case 'm':
  65.                     return "colt";
  66.                 case 'F':
  67.                 case 'f':
  68.                     return "filly";
  69.                 default:
  70.                     return "young " + name().toLowerCase();
  71.                 }
  72.             case Race.AGE_MATURE:
  73.             case Race.AGE_MIDDLEAGED:
  74.             default:
  75.                 switch(gender)
  76.                 {
  77.                 case 'M':
  78.                 case 'm':
  79.                     return "stud";
  80.                 case 'F':
  81.                 case 'f':
  82.                     return "stallion";
  83.                 default:
  84.                     return name().toLowerCase();
  85.                 }
  86.             case Race.AGE_OLD:
  87.             case Race.AGE_VENERABLE:
  88.             case Race.AGE_ANCIENT:
  89.                 switch(gender)
  90.                 {
  91.                 case 'M':
  92.                 case 'm':
  93.                     return "old male " + name().toLowerCase();
  94.                 case 'F':
  95.                 case 'f':
  96.                     return "old female " + name().toLowerCase();
  97.                 default:
  98.                     return "old " + name().toLowerCase();
  99.                 }
  100.         }
  101.     }
  102. }
  103.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×