game

module game

Dependencies

dep_module_android__gamenative_app_gluenative_app_glueassetsassetsgamegamegame->native_app_gluegame->assets

Imports

  • assets: Implementation of app::assets
  • native_app_glue: Wrapper of the Android native_app_glue framework to implement app.nit

Clients

  • android: Android support for MNit
  • android_app: Impements the services of mnit:app using the API from the Android ndk
  • android_assets: Implements the mnit::assets services with a wraper around the filesystem
  • android_opengles1: Adapts OpenGL ES 1.0 for use on Android by offering services to get
  • camera_control_android: Two fingers camera manipulation, pinch to zoom and slide to scroll
  • display_android: Gamnit display implementation for Android
  • gamepad: Support for gamepad events (over Bluetooth or USB)
  • gamnit_android: Support services for Gamnit on Android
  • input_events: Pointer and hardware key events
  • sensors: Access Android sensors

Concerns

  • app: app.nit, a framework for portable applications
    • app_base: Base of the app.nit framework, defines App

from app::app_base

App

app::App

redef class App

App subclasses are cross-platform applications

This class is refined by platform modules and so App can be specialized directly in the user application code.

Introduces
  • paused: Is the application currently paused?
  • paused=: Is the application currently paused?
Redefines
  • init_window: Notification from the native_app glue framework, a new ANativeWindow is ready
  • term_window: Notification from the native_app glue framework, the existing window needs to be terminated
  • pause: Notification from the Android framework, your app has been paused
  • resume: Notification from the Android framework, native_activity has been resumed
  • save_state: Notification from the Android framework to generate a new saved state
  • lost_focus: Notification from the Android framework, native_activity has lost focus
  • gained_focus: Notification from the Android framework, native_activity has gained focus