Weapon

This module is part of the dungeon_gui package, for the graphical representation of the dungeon

class Weapon.Weapon(damage=0, weapon_tileset=<Surface(512x256x32 SW)>, weapon_pos_x=13.5, weapon_pos_y=18.5)

Bases: Collectable

This class describes the representation of the Weapon Object

render_collectable(screen, scale_factor)

Rendering of the Weapon Object on the screen using a tile set

Parameters

param screen:

Screen where dungeon_gui runs

type screen:

pygame Surface

param scale_factor:

Object scale factor

type scale_factor:

int

update_damage(damage)

Updates weapon damage attribute and weapon representation for different values

Parameters

param damage:

Weapon damage value

type damage:

int