Static Target
from dgisim import StaticTarget
StaticTarget is widely used to locate a certain thing in the game state.
It stores 3 values: pid, zone and id.
pidtells which player to look for.zonetells which zone is the focus (character, summon, support).idis either the character id, summon type or support id (sid).
- class StaticTarget(pid: dgisim.state.enums.Pid, zone: dgisim.effect.enums.Zone, id: int | type['Summon'] | type['Card'], status: None | type['Status'] = None)
-
- classmethod from_char_id(pid: Pid, char_id: int) Self
- Returns:
the static target for character with
char_idof playerpid.
- classmethod from_personal_status(pid: Pid, char_id: int, status: type['PersonalStatus']) Self
- Returns:
the static target for
statusof characterchar_id.
- classmethod from_player_active(game_state: GameState, pid: Pid) Self
- Returns:
the static target for the player
pidingame_state.
- classmethod from_summon(pid: Pid, summon: type['Summon']) Self
- Returns:
the static target for
summonof playerpid.