Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using Jypeli; |
---|
6 | |
---|
7 | public class Boost : PhysicsObject |
---|
8 | { |
---|
9 | DoubleMeter etenemisVauhtiMittari; |
---|
10 | |
---|
11 | public Boost(double leveys, double korkeus, DoubleMeter etenemisVauhtiMittari) |
---|
12 | : base(leveys, korkeus) |
---|
13 | { |
---|
14 | this.MakeStatic(); |
---|
15 | this.etenemisVauhtiMittari = etenemisVauhtiMittari; |
---|
16 | IsUpdated = true; |
---|
17 | } |
---|
18 | |
---|
19 | public override void Update(Time time) |
---|
20 | { |
---|
21 | this.Velocity = new Vector(etenemisVauhtiMittari.Value, 0); |
---|
22 | base.Update(time); |
---|
23 | } |
---|
24 | } |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.