Exemplo n.º 1
0
 public CannonStub(GameScreen scrn, FPoint pos, float scale) : base(scrn, GDConstants.ORDER_GAME_CANNON)
 {
     Center     = pos;
     Scale      = scale;
     Rotation   = 0f;
     CannonType = CannonStubType.Bullet;
     CannonFrac = CannonStubFraction.N0;
 }
Exemplo n.º 2
0
 public CannonStub(GameScreen scrn, SCCMLevelElement dat) : base(scrn, GDConstants.ORDER_GAME_CANNON)
 {
     Center     = dat.Cannon_Center;
     Scale      = dat.Cannon_Scale;
     Rotation   = dat.Cannon_Rotation;
     CannonType = dat.Cannon_CannonType;
     CannonFrac = dat.Cannon_CannonFrac;
 }
Exemplo n.º 3
0
 private void ChangeCannonType()
 {
     CannonType = (CannonStubType)(((int)CannonType + 1) % 6);
 }