Пример #1
0
 public MovableObject(IActiveElements ActiveElements, IDrawer drawer, IMoveDefiner moveDefiner, PlayerStatus status, IPixSound sound, IMovableObjectParameters parameters) : base(0, 0, drawer)
 {
     status.OnDamageDeal = OnDamageDeal;
     this.ActiveElements = ActiveElements;
     this.moveDefiner    = moveDefiner;
     this.status         = status;
     Sound        = sound;
     Parameters   = parameters;
     speed        = 0;
     TicksElapsed = Parameters.BlocksCollisionDelay;
 }
Пример #2
0
 public Player(PauseForm pauseMenu, IActiveElements activeElements, IMoveDefiner definer, PlayerStatus status, IDrawer drawer, IMover mover, IPixSound sound, IMovableObjectParameters parameters, IGameScene scene, PointerController pointer) : base(activeElements, drawer, definer, status, sound, parameters)
 {
     position      = new Vector2(0, 0);
     size          = 10;
     image         = 0;
     status.OnKill = KillPlayer;
     settingsForm  = pauseMenu;
     Mover         = mover;
     Scene         = scene;
     Pointer       = pointer;
 }