Esempio n. 1
0
 public QuestionBlockEntity(ObstacleFactory factory, Vector2 position, Entity ItemEnt)
     : base(factory, ItemEnt)
 {
     Block             = (AbstractObstacle)SpriteFactory.getSprite((int)obstacleTypes.QUESTIONBLOCK);
     Block.Position    = position;
     BlockSM           = new BlockStateMachine(this);
     CurrentBlockState = new QuestionBlockState(BlockSM, this);
 }
 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);
 }