Beispiel #1
0
        private void consumePotion(ZombieTime zTime)
        {
            board.setGridPositionOpen(this);
            isConsumed = true;

            int updateTime = zTime.getTime() - healthReplenished;
            zTime.setTime(updateTime);

            potionSound.Play();
        }
Beispiel #2
0
        public void setZTime(ZombieTime mytime) 
        {
            zTime.setTime(mytime.getTime());

            zTimeReset = new ZombieTime(board);
            zTimeReset.reset();
            zTimeReset.setTime(mytime.getTime());
        }