def __init__(self, labyrinth_ctrl, hero_ctrl, guard_ctrl, game_engine): super().__init__(game_engine, labyrinth_ctrl) self._hero_ctrl = hero_ctrl self._guard_ctrl = guard_ctrl self._model = ObjectModel(self, ("pill", PILL_FILE), ("diluent", DILUENT_FILE), ("needle", NEEDLE_FILE)) self._view = ObjectView(self, self._model, game_engine) self.setting_collisions()
from django.conf.urls.defaults import * from views import AccountView, ContainerView, ObjectView urlpatterns = patterns( '', url(r'^v1/([-a-zA-Z0-9_]+)$', AccountView.as_view(), name='account_services'), url(r'^v1/([-a-zA-Z0-9_]+)/([-a-zA-Z0-9_%]+)$', ContainerView.as_view(), name='container_services'), url(r'^v1/([-a-zA-Z0-9_]+)/([-a-zA-Z0-9_%]+)/(.*)$', ObjectView.as_view(), name='object_services'), )
from django.conf.urls.defaults import * from views import AccountView, ContainerView, ObjectView urlpatterns = patterns('', url(r'^v1/([-a-zA-Z0-9_]+)$', AccountView.as_view(), name='account_services'), url(r'^v1/([-a-zA-Z0-9_]+)/([-a-zA-Z0-9_%]+)$', ContainerView.as_view(), name='container_services'), url(r'^v1/([-a-zA-Z0-9_]+)/([-a-zA-Z0-9_%]+)/(.*)$', ObjectView.as_view(), name='object_services'), )