Example #1
0
 public BindedLogic(PureLogic purelogic, bool hasPassLogic = false, bool hasBeginingLogic = false, bool isStopSquare = false)
 {
     HasPassLogic      = hasPassLogic;
     PureLogic         = purelogic;
     HasBeginningLogic = hasBeginingLogic;
     IsStopSquare      = isStopSquare;
 }
Example #2
0
 public Story(StoryType storyType, String displayedMessage, PureLogic pureLogic, bool positive, String storyGraphic)
 {
     DisplayedMessage = displayedMessage;
     StoryType        = storyType;
     PureLogic        = pureLogic;
     Positive         = positive;
     StoryGraphic     = storyGraphic;
 }
Example #3
0
    public void RandomCirclePosInQuad_Range_OK()
    {
        float   w        = 10;
        float   h        = 10;
        float   r        = 5;
        Vector2 leftDown = new Vector2(-w, -h);
        Vector2 rightUp  = new Vector2(w, h);
        Vector2 result   = PureLogic.RandomCirclePosInQuad(leftDown, rightUp, 5);
        float   left     = -(w - r);
        float   top      = h - r;
        float   right    = w - r;
        float   down     = -(h - r);

        Assert.IsTrue(left <= result.x && result.x <= right);
        Assert.IsTrue(down <= result.y && result.y <= top, "y = {0} down = {1} top = {2}", result.y, down, top);
    }
Example #4
0
 public void Initialize()
 {
     PureLogic.Initialize();
 }
Example #5
0
 public IGameState[] PerformLogic(GameTime gameTime, GameInfo gameInfo)
 {
     return(PureLogic.PerformLogic(gameTime, gameInfo));
 }