public VMovingBlockState(BlockStateMachine sm, BlockForm block)
     : base(sm, block)
 {
     VStart          = block.Start;
     VFinish         = block.Finish;
     VSpeed          = block.Speed;
     block.Velocity  = new Vector2(0f, VSpeed);
     block.Direction = Direction.RIGHT; // RIGHT = DOWN
 }
예제 #2
0
 public HMovingBlockState(BlockStateMachine sm, BlockForm block)
     : base(sm, block)
 {
     HStart          = block.Start;
     HFinish         = block.Finish;
     Speed           = block.Speed;
     block.Velocity  = new Vector2(Speed, 0f);
     block.Direction = Direction.RIGHT;
 }
 public BlockStateMachine(BlockForm block)
 {
     QuestionBlock = new QuestionBlockState(this, block);
     UsedBlock     = new UsedBlockState(this, block);
     BrickBlock    = new BrickBlockState(this, block);
     FloorBlock    = new FloorBlockState(this, block);
     PyramidBlock  = new PyramidBlockState(this, block);
     HiddenBlock   = new HiddenBlockState(this, block);
     VMovingBlock  = new VMovingBlockState(this, block);
     HMovingBlock  = new HMovingBlockState(this, block);
 }
예제 #4
0
 public PyramidBlockState(BlockStateMachine sm, BlockForm block)
     : base(sm, block)
 {
 }
 protected AbstractBlockState(BlockStateMachine sm, BlockForm blockForm)
 {
     stateMachine = sm;
     block        = blockForm;
 }
예제 #6
0
 public HitPyramidCommand(BlockForm block)
     : base(block)
 {
 }
 public HitQuestionCommand(BlockForm block)
     : base(block)
 {
 }
예제 #8
0
 public HitUsedCommand(BlockForm block)
     : base(block)
 {
 }
예제 #9
0
 public ResetCommand(BlockForm block)
     : base(block)
 {
 }
예제 #10
0
 public UsedBlockState(BlockStateMachine sm, BlockForm block)
     : base(sm, block)
 {
 }
예제 #11
0
 public QuestionBlockState(BlockStateMachine sm, BlockForm block)
     : base(sm, block)
 {
 }
예제 #12
0
 public HitBrickCommand(BlockForm block)
     : base(block)
 {
 }
예제 #13
0
 public HiddenBlockState(BlockStateMachine sm, BlockForm block)
     : base(sm, block)
 {
 }
예제 #14
0
 protected BlockCommand(BlockForm block)
 {
     receiver = block;
 }
예제 #15
0
 public HitHiddenCommand(BlockForm block)
     : base(block)
 {
 }
예제 #16
0
 public BrickBlockState(BlockStateMachine sm, BlockForm block)
     : base(sm, block)
 {
 }
예제 #17
0
 public HitFloorCommand(BlockForm block)
     : base(block)
 {
 }
예제 #18
0
 public FloorBlockState(BlockStateMachine sm, BlockForm block)
     : base(sm, block)
 {
 }