Class: Entity::Titanium

Inherits:
Entity
  • Object
show all
Defined in:
lib/game_2d/entity/titanium.rb

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

#above, #accelerate, #all_state, #angle_to_vector, #as_json, #beneath, #bottom_cell_y, #cx, #cy, #destroy!, #direction, #direction_to, #doomed?, #draw, #draw_angle, #draw_animation, #draw_image, #draw_zorder, #drop_diagonal, #empty_above?, #empty_on_left?, #empty_on_right?, #empty_underneath?, #entities_obstructing, #going_past_entity, #grab!, #grabbed?, #harmed_by, #i_hit, #initialize, #left_cell_x, #move, #move_x, #move_y, #moving?, #next_to, #occupied_cells, #on_left, #on_right, #opaque, #pixel_x, #pixel_y, #release!, #right_cell_x, #should_fall?, #slide_around, #slow_by, #slower_speed, #teleportable?, #to_s, #top_cell_y, #underfoot, #update_from_json, #vector_to_angle, #wake!, #warp

Methods included from ClassMethods

#bottom_cell_y_at, #constrain_velocity, #left_cell_x_at, #right_cell_x_at, #top_cell_y_at

Methods included from Transparency

#transparent?

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_filenameObject



8
# File 'lib/game_2d/entity/titanium.rb', line 8

def image_filename; "titanium.gif"; end

#sleep_now?Boolean

Returns:

  • (Boolean)


6
# File 'lib/game_2d/entity/titanium.rb', line 6

def sleep_now?; true; end

#updateObject



4
# File 'lib/game_2d/entity/titanium.rb', line 4

def update; end