示例#1
0
        /**
         * decrements infectedTimer and updates infectBar
         */
        private void updateInfectedStatus()
        {
            //infect Bar
            infectBar.setWidth(base.getWidth());
            infectBar.setHeight(health.getHeight());
            infectBar.setCenterX(base.getCenterX());
            infectBar.setCenterY(health.getCenterY() - health.getHeight());

            //infectCloud
            infectCloud.setSize(base.getWidth(), base.getHeight());
            infectCloud.setCenter(base.getCenterX(), base.getCenterY());
        }