Module nari.types.event.statuslist
Classes for status list updates
Expand source code
"""Classes for status list updates"""
from nari.types import Timestamp
from nari.types.event import Event
from nari.types.classjoblevel import ClassJobLevel
from nari.types.actor import Actor
from nari.types.status import StatusEffect
class StatusList(Event): # pylint: disable=too-few-public-methods
"""Represents a player Actor status list"""
def __init__(self, *,
timestamp: Timestamp,
class_job_level: ClassJobLevel,
target_actor: Actor,
status_effects: list[StatusEffect],
):
super().__init__(timestamp)
self.class_job_level = class_job_level
self.target_actor = target_actor
self.status_effects = status_effects
def __repr__(self):
return '<StatusList>'
class StatusListBasic(Event): # pylint: disable=too-few-public-methods
"""Represents a simplified status list"""
def __init__(self, *,
timestamp: Timestamp,
target_actor: Actor,
status_effects: list[StatusEffect],
):
super().__init__(timestamp)
self.target_actor = target_actor
self.status_effects = status_effects
def __repr__(self):
return '<StatusListBasic>'
Classes
class StatusList (*, timestamp: int, class_job_level: ClassJobLevel, target_actor: Actor, status_effects: list[StatusEffect])
-
Represents a player Actor status list
Expand source code
class StatusList(Event): # pylint: disable=too-few-public-methods """Represents a player Actor status list""" def __init__(self, *, timestamp: Timestamp, class_job_level: ClassJobLevel, target_actor: Actor, status_effects: list[StatusEffect], ): super().__init__(timestamp) self.class_job_level = class_job_level self.target_actor = target_actor self.status_effects = status_effects def __repr__(self): return '<StatusList>'
Ancestors
class StatusListBasic (*, timestamp: int, target_actor: Actor, status_effects: list[StatusEffect])
-
Represents a simplified status list
Expand source code
class StatusListBasic(Event): # pylint: disable=too-few-public-methods """Represents a simplified status list""" def __init__(self, *, timestamp: Timestamp, target_actor: Actor, status_effects: list[StatusEffect], ): super().__init__(timestamp) self.target_actor = target_actor self.status_effects = status_effects def __repr__(self): return '<StatusListBasic>'
Ancestors