コード例 #1
0
ファイル: ball.cs プロジェクト: ITGDavidAndersson/TE13_spel1
		public ball(int owner)
		{
			this.xMove = 0;
			this.yMove = 0;
			this.state = pickState.onPlayer;
			this.owner = owner;
		}
コード例 #2
0
ファイル: ball.cs プロジェクト: ITGDavidAndersson/TE13_spel1
		public void fire(double x, double y, double strength, double dir)
		{
			this.x = x + Form1.Rot2Point(dir, "x") * 50 - 5;
			this.y = y + Form1.Rot2Point(dir, "y") * 50 - 5;
			this.xMove = Form1.Rot2Point(dir, "x") * strength;
			this.yMove = Form1.Rot2Point(dir, "y") * strength;
			this.state = pickState.onGround;
			this.owner = -1;
		}