예제 #1
0
 public ReboundTemplate(float paddleSpeed, BallType bType, ArenaObject arObject, ArenaObjectType arObjectType)
 {
     PaddleSpeed  = paddleSpeed;
     BType        = bType;
     ArObject     = arObject;
     ArObjectType = arObjectType;
 }
예제 #2
0
        public void GetReboundStrategyTest(ArenaObjectType type)
        {
            PowerUpBuilder builder = new PowerUpBuilder();
            PowerUp        a       = builder.CreateObject() as PowerUp;

            a.SetTypeParams(type);
            var str = a.GetReboundStrategy();

            Assert.IsTrue(a.Type == type);
        }
예제 #3
0
 public virtual void SetTypeParams(ArenaObjectType type)
 {
     Type = type;
 }
예제 #4
0
 public ReboundFromPaddle(float paddleSpeed, BallType bType, ArenaObject arObject, ArenaObjectType arObjectType) : base(paddleSpeed, bType, arObject, arObjectType)
 {
 }