Пример #1
0
        public void NextSprite()
        {
            this.Model.AllSprites["Explosion"].SubRect.x = currentSprite * (Model.AllSprites["Explosion"].TextureWidth / NB_SPRITES);

            currentSprite++;
            if (currentSprite > NB_SPRITES)
            {
                MainEventBus.PostEvent(new SceneStateEvent(SceneStateEvent.Type.DESPAWN_ENTITY, this));
            }
        }
Пример #2
0
 public override void Execute()
 {
     MainEventBus.PostEvent(eventToThrow);
 }
Пример #3
0
        //Accessors


        //Methods
        public override void Execute()
        {
            MainEventBus.PostEvent(new SceneStateEvent(SceneStateEvent.Type.CHANGE_SCENE, new ExitScene()));
        }
Пример #4
0
        private void LaunchBullet()
        {
            WeaponProjectileObject bullet = projectileSpawner.Spawn();

            MainEventBus.PostEvent(new SceneStateEvent(SceneStateEvent.Type.SPAWN_NEW_ENTITY, bullet));
        }
Пример #5
0
 public override void Execute()
 {
     time.Reset();
     MainEventBus.PostEvent(new SceneStateEvent(SceneStateEvent.Type.SPAWN_GROUP));
 }
Пример #6
0
        //Accessors


        //Methods
        public override void Execute()
        {
            MainEventBus.PostEvent(new SceneStateEvent(SceneStateEvent.Type.CHANGE_SCENE, new PlayScene(playparameters)));
        }
Пример #7
0
        //Accessors


        //Methods
        public override void Execute()
        {
            MainEventBus.PostEvent(new SceneStateEvent(SceneStateEvent.Type.DESPAWN_ENTITY, owner));
        }
Пример #8
0
        //Accessors


        //Methods
        public override void Execute()
        {
            MainEventBus.PostEvent(new SceneStateEvent(SceneStateEvent.Type.FLIP_MENU));
        }