Class: Item

Item

new Item(p_x, p_y)

Parameters:
Name Type Description
p_x int The x position of the item.
p_y int The y position of the item.
Source:

Members

image :String

The image (a mini canvas) of the item.
Type:
  • String
Source:

size :String

The pixel size of an item. This value is equal for all items!
Type:
  • String
Source:

x :Number

The x-position of the item.
Type:
  • Number
Source:

y :Number

The y-position of the item.
Type:
  • Number
Source:

Methods

<static> init(p_init)

Initializes the class Item and all its subclasses.
Parameters:
Name Type Description
p_init Object Should contain the attributes size (the size of every item; size == width == height) and subclasses (an object; for every subclasses of Item there should be one attribute; the name of the attribute must be equal to the name of the subclass and the value should contain proper initialization values for the subclass).
Source:
W. Kowarschick © 2013 (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/)
Documentation generated by JSDoc 3.3.0-dev on Sun Dec 15 2013 11:34:37 GMT+0100 (MEZ) using the DocStrap template.