All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Extensions::MissileCmd::Sky Class Reference

Description

Game logic for the Missile Command game.

The Sky class handles most of the game logic for the Missile Command game. The class stores, for example, game states and processes input and launches missiles.

This is an internal class.

Valuable Attributes

int ground-depth = 70
  More...
 
int hit-damage = 20
  More...
 
int hit-radius = 100
  More...
 
- Valuable Attributes inherited from MultiWidgets::Widget
float angular-damping = 1.F
 Set the angular damping of the widget, which controls how fast the the angular velocity (omega) will slow down when thrown. More...
 
float damping = 0.995000004F
 The damping of the Widget controls how quickly the Widget will slow down and stop when thrown. More...
 
float depth = 0.F
 Depth of the widget. More...
 
Widget::DisplayMode display = Widget::DISPLAY_BLOCK
 Controls widget visibility. More...
 
float extra-input-capture-radius = 0.F
 Extra radius (in widget coordinates) used when input is processed. More...
 
Radiant::FlagsT< Widget::Flagsflags = Widget::FLAGS_DEFAULT
 Widget flags define common behaviour of widget. More...
 
Radiant::FlagsT
< Widget::InputFlags
input-flags = Widget::INPUT_DEFAULT
 Current input processing parameters which determine how this widget will react to input. More...
 
float maximum-tap-motion = 50.F
 Adjusts the limit for recognizing taps within this Widget. More...
 
float maximum-tap-time = 0.5F
 Adjusts the time limit for recognizing taps. More...
 
float omega = 0.F
 Angular velocity of the widget in radians per second. More...
 
float opacity = 1.F
 Transparency factor that gets recursively applied to any child widgets this widget has. More...
 
Nimble::Vector2 origin = Nimble::Vector2f(0, 0)
 Relative origin of the widget coordinates. More...
 
float rotation = 0.F
 Clockwise rotation of the Widget in radians, relative to the parent. More...
 
float scale = 1.F
 Scale of the Widget. More...
 
float scale-damping = 1.F
 Set the scale damping of the widget. More...
 
Widget::TouchArea touch-area = Widget::TOUCH_BORDER_BOX
 Controls the default touchable area of the widget. More...
 
Nimble::Vector2f velocity = Nimble::Vector2f(0.F, 0.F)
 Return the current velocity of the Widget. More...
 
- Valuable Attributes inherited from Stylish::CSSBoxModel
Nimble::Vector2 location = Nimble::Vector2f(0.F, 0.F)
 The location of this object in pixels in its parent's coordinate system. More...
 
Nimble::Frame4f margin = Nimble::Vector4(0, 0, 0, 0)
 Size of the margin. More...
 
Nimble::Frame4f padding = Nimble::Vector4(0, 0, 0, 0)
 Size of the padding. More...
 
Nimble::SizeF size = Nimble::SizeF(100.F, 100.F)
 Box size in pixels. More...
 
- Valuable Attributes inherited from Stylish::Styleable
QString css-class = ""
 Get the CSS classes of the Styleable as a space separated string. More...
 
QString css-id = ""
 Get the CSS id of the Styleable. More...
 
- Valuable Attributes inherited from Valuable::Node
Node::Uuid id = generateId()
 Returns the unique id. More...
 

Additional Inherited Members

- Node Events inherited from MultiWidgets::Widget
[OUT] child-added (Node::Uuid childId)
 Sent when child was added to the widget. See also addChild.
 
[OUT] child-removed (Node::Uuid childId)
 Sent when child was removed from the widget. See also removeChild.
 
[OUT] deleted (Node::Uuid widgetId)
 The widget has been deleted, emitted during widget destructor processing. The removed widget id is given as a parameter.
 
[IN] deserialize (Qstring filename)
 Deserializes Widget from given XML-file and adds it to the child of Widget. See also Valuable::Serializer::deserializeXML.
 
[OUT] finger-down (int64_t id)
 User has touched the widget with a finger and the finger was given an identifier id.
 
[OUT] finger-up (int64_t id)
 User has released a finger that was previously given an identifier id.
 
[OUT] hand-down (int64_t id)
 User has touched the widget with a hand and the hand was given an identifier id.
 
[OUT] hand-up (int64_t id)
 User has released a hand that was previously given an identifier id.
 
[OUT] has-interaction (bool interaction)
 Sent when interaction with Widget is started/enden. Passed value is true if interaction began and false if ended.
 
[OUT] hidden
 Sent when the display attribute changes to none.
 
[IN] hide
 Hide the widget. Corresponds to function hide.
 
[OUT] interaction-begin
 User has started interacting with the widget. Event is sent just after interactionBegin is called.
 
[OUT] interaction-end
 User has stopped interacting with the widget. Event is sent just after interactionEnd is called.
 
[IN] lower-to-bottom (bool recursive=false)
 Lowers Widget to bottom. Corresponds to function lowerToBottom.
 
[OUT] marker-down (int64_t id)
 User has touched the widget with a marker and the marker was given an identifier id.
 
[OUT] marker-up (int64_t id)
 User has released a marker that was previously given an identifier id.
 
[OUT] orphan-tree-changed (bool isOrphan)
 Widget was orphaned or added back to hierarchy.
 
[OUT] parent-changed
 The widget's parent was changed.
 
[OUT] pen-down (int64_t id)
 User has touched the widget with a pen and the pen was given an identifier id.
 
[OUT] pen-up (int64_t id)
 User has released a pen that was previously given an identifier id.
 
[IN] raise-to-top (bool recursive=false)
 Raises Widget to top. Corresponds to function raiseToTop.
 
[IN] remove-from-parent
 Removes the widget from its parent. Corresponds to function removeFromParent.
 
[IN] serialize (QString filename)
 Serializes this Widget to given XML-file. See also Valuable::Serializer::serializeXML.
 
[IN] show
 Show the widget. Corresponds to function show.
 
[OUT] shown
 Sent when the display attribute changes to block.
 
[OUT] single-tap (Nimble::Vector2f location)
 User has performed a single-tap gesture. Event is sent just after singleTap is called.
 
[IN] touch
 Sets the last interaction time. Corresponds to function touch.
 
[OUT] tracked-object-down (int64_t id)
 User has touched the widget with any tracked object and the object was given an identifier id.
 
[OUT] tracked-object-up (int64_t id)
 User has released a tracked object that was previously given an identifier id.
 
[OUT] visual-focus-change
 Sent after visualFocusChange is called.