diff --git a/docs/temp/m.html b/docs/temp/m.html new file mode 100644 index 0000000..ef0e41b --- /dev/null +++ b/docs/temp/m.html @@ -0,0 +1,63 @@ + + +
+Enemy character manager for combat in the game.
+ +The Monster class is responsible for managing the attributes and actions of enemy characters during combat scenarios.
+ +Initializes the Monster object with the specified attributes.
+Constructor(self, animation, name: str, hp: int, at: int, df: int, act_options: list[str] = [])
+ Arguments
+Reduces the monster's health points due to damage.
+hurt(self, damage: int)
+ Arguments
+Restores health points to the monster.
+heal(self, num: int)
+ Arguments
+
+@monster_object.events
+def available_hook_name(arg1, arg2, ...) -> return_type:
+ # code here
+
+ Note that their should not be a 'self' argument in the hook function.
+When the player use ACT, targeted to the current monster.
+on_act(self, name: str) -> list[str] | None
+ Arguments
+Copies attributes from another Player object. (used for overworld-connection)
+write_data(self, p)
+ Arguments
+
+@player_object.events
+def available_hook_name(arg1, arg2, ...) -> return_type:
+ # code here
+
+ Note that their should not be a 'self' argument in the hook function.
+When attack and hurt somebody.
on_attack(self, damage: int, target: Monster) -> int | None | str
@@ -83,23 +98,5 @@ Sets the wait time for the player.
-st_wd(self)
-
- Updates the player's state, including reducing the wait time.
-update(self)
-
- Copies attributes from another Player object.
-write_data(self, p)
- Arguments
-The Player class is integral to the combat system, handling all player-related actions and attributes. Ensure all necessary hooks are set up before engaging in combat.