deep.js
// This structure represents a push notification.

This structure represents a push notification.
This structure represents a push notification .
function _Push_Notification(team, text)
{
	this.team = team;
	this.text = text;
	this.life = 0;
	this.getSize = function()
	{
		if (this.life < 10)
		{
			return (Math.sin(this.life * 9 * (Math.PI / 180)) + 1) / 2;
		}
		else if (this.life > 210)
		{
			return 0;
		}
		else if (this.life > 200)
		{
			return (Math.sin((210 - this.life) * 9 * (Math.PI / 180)) + 1) / 2;
		}
		else
		{
			return 1;
		}
	}
}
function _Push_Notification ( team , text ) { this . team = team ; this . text = text ; this . life = 0 ; this . getSize = function ( ) { if ( this . life < 10 ) { return ( Math . sin ( this . life * 9 * ( Math . PI / 180 ) ) + 1 ) / 2 ; } else if ( this . life > 210 ) { return 0 ; } else if ( this . life > 200 ) { return ( Math . sin ( ( 210 - this . life ) * 9 * ( Math . PI / 180 ) ) + 1 ) / 2 ; } else { return 1 ; } } }
This structure represents a push notification.
This structure represents a push notification .