Core - Game

A Game object defines a wouso pluggable game, such as Qotd, Challenge and Quest.

  1. Abstract
  2. Question Pool
  3. Formulas
  4. Main view
  5. Dummy module for easy developing new modules

Guidelines

  • Installed games detection is done via get_games() which introspects Django for models extending Game()
  • Each game should use proxy model inheritance, and provide a verbose_name meta

See also

wouso.core.game

wouso.core.game.get_games()

Returns a list of Game classes

wouso.core.game.models

class wouso.core.game.models.Game(*args, **kwargs)

Generic game class. Each installed application acting like a game should extend this class.

classmethod get_coins(kls)

Returns a list of game-specific coins (as names)

classmethod get_formulas(kls)

Returns a list of formulas used by the game

get_game_absolute_url()

Return a tuple for django template system

classmethod get_instance(kls)

Return the unique instance of a Game, starting from its class model.

classmethod get_modifiers(kls)

Return a list of modifiers - as names (this translates to artifact names) Player has_modifier checks if the user has an artifact with the modifier id.

Table Of Contents

Previous topic

Core

Next topic

Core - God

This Page