OSDN Git Service

fix: new speechballoon
[pettanr/pettanr.git] / app / assets / javascripts / models / ground_color.js.coffee
index 7839866..fc7ba8d 100644 (file)
@@ -15,14 +15,26 @@ class Pettanr.GroundColor extends Peta.Element
   @has_picture: () ->\r
     false\r
   \r
-  panel: () ->\r
-    new Pettanr.Panel({id: @get('panel_id')})\r
+  @pick_item_name: () ->\r
+    ''\r
   \r
-  initialize: () ->\r
+  @pick_model: () ->\r
+    Manifest.item_name_to_model(@pick_item_name())\r
+  \r
+  @traceable_item_names: () ->\r
+    []\r
+  \r
+  @is_traceable: (item_name) ->\r
+    _.contains(@traceable_item_names(), item_name)\r
+  \r
+  panel: (options = {}) ->\r
+    new Pettanr.Panel({id: @get('panel_id')}, options)\r
+  \r
+  element_face: () ->\r
+    new Pettanr.Views.GroundColor.ElementFace({element: this})\r
+  \r
+  initialize: (attr, options) ->\r
+    super(attr, options)\r
     if @id\r
       @url = @url + @id\r
   \r
-class Pettanr.GroundColor.Collection extends Backbone.Collection\r
-  model: Pettanr.GroundColor\r
-  url: '/ground_colors/'\r
-  \r