Пример #1
0
        public override void clientClone(ModPlayer clientClone)
        {
            GradiusModPlayer clone = clientClone as GradiusModPlayer;

            clone.isFreezing = isFreezing;
            clone.rotateMode = rotateMode;
        }
Пример #2
0
        public override void clientClone(ModPlayer clientClone)
        {
            GradiusModPlayer clone = clientClone as GradiusModPlayer;

            clone.isFreezing          = isFreezing;
            clone.rotateMode          = rotateMode;
            clone.seedRotateDirection = seedRotateDirection;
            clone.chargeMode          = chargeMode;
            clone.isSearching         = isSearching;
        }
 public static bool OptionOwnPositionCheck(GradiusModPlayer gp, int pos)
 {
     if (pos == 1)
     {
         return(gp.optionOne);
     }
     else if (pos == 2)
     {
         return(gp.optionTwo);
     }
     else if (pos == 3)
     {
         return(gp.optionThree);
     }
     else if (pos == 4)
     {
         return(gp.optionFour);
     }
     else
     {
         return(false);
     }
 }
 public static bool OptionsPredecessorRequirement(GradiusModPlayer gp, int pos)
 {
     if (pos == 1)
     {
         return(true);
     }
     else if (pos == 2)
     {
         return(gp.optionOne);
     }
     else if (pos == 3)
     {
         return(gp.optionOne && gp.optionTwo);
     }
     else if (pos == 4)
     {
         return(gp.optionOne && gp.optionTwo && gp.optionThree);
     }
     else
     {
         return(false);
     }
 }
 public static bool OptionCheckSelfAndPredecessors(GradiusModPlayer gp, int pos)
 {
     return(OptionsPredecessorRequirement(gp, pos) &&
            OptionOwnPositionCheck(gp, pos));
 }