OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / models / ground_color.js.coffee
1 class Pettanr.GroundColor extends Peta.Element\r
2   url: '/ground_colors/'\r
3   \r
4   @singular: () ->\r
5     'GroundColor'\r
6   \r
7   @plural: () ->\r
8     'GroundColors'\r
9   \r
10   defaults: {\r
11     id: null,\r
12     code: 0xeeeeee,\r
13     orientation: 0\r
14   } \r
15   \r
16   @pick_item_name: () ->\r
17     'ground_color'\r
18   \r
19   @traceable_item_names: () ->\r
20     []\r
21   \r
22   pick: (picked_item) ->\r
23     {\r
24     }\r
25   \r
26   @has_picture: () ->\r
27     false\r
28   \r
29   @pick_item_name: () ->\r
30     ''\r
31   \r
32   panel: () ->\r
33     new Pettanr.Cache.Retriever(Pettanr.Panel, @get('panel_id'))\r
34   \r
35   element_face: () ->\r
36     new Pettanr.Views.GroundColor.ElementFace({element: this})\r
37   \r
38   initialize: (attr, options) ->\r
39     super(attr, options)\r
40     if @id\r
41       @url = @url + @id\r
42   \r