Class: Entity::Titanium
Constant Summary
Constants included from EntityConstants
EntityConstants::CELL_WIDTH_IN_PIXELS, EntityConstants::MAX_VELOCITY, EntityConstants::PIXEL_WIDTH, EntityConstants::WIDTH
Instance Attribute Summary
Attributes inherited from Entity
#a, #moving, #space, #x, #x_vel, #y, #y_vel
Instance Method Summary collapse
Methods inherited from Entity
#accelerate, #all_state, #angle_to_vector, #as_json, #bottom_cell_y, bottom_cell_y_at, #destroy!, #direction_to, #doomed?, #draw, #draw_zorder, #drop_diagonal, #empty_above?, #empty_on_left?, #empty_on_right?, #empty_underneath?, #entities_obstructing, #going_past_entity, #harmed_by, #i_hit, #initialize, #left_cell_x, left_cell_x_at, #move, #move_x, #move_y, #moving?, #next_to, #occupied_cells, #opaque, #pixel_x, #pixel_y, #right_cell_x, right_cell_x_at, #should_fall?, #to_s, #top_cell_y, top_cell_y_at, #transparent_to_me?, #update_from_json, #vector_to_angle, #wake!, #warp
Methods included from Registerable
#nullsafe_registry_id, #registry_id, #registry_id=, #registry_id?, #registry_id_safe
Methods included from Serializable
#<=>, #==, #all_state, as_json, #eql?, from_json, #hash, #to_json, #to_s, #update_from_json
Constructor Details
This class inherits a constructor from Entity
Instance Method Details
#image_filename ⇒ Object
8 |
# File 'lib/game_2d/entity/titanium.rb', line 8 def image_filename; "titanium.gif"; end |
#sleep_now? ⇒ Boolean
6 |
# File 'lib/game_2d/entity/titanium.rb', line 6 def sleep_now?; true; end |
#update ⇒ Object
4 |
# File 'lib/game_2d/entity/titanium.rb', line 4 def update; end |