TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boss_krick::boss_krickAI Struct Reference

Public Member Functions

 boss_krickAI (Creature *creature)
 
void Initialize ()
 
void Reset () override
 
CreatureGetIck ()
 
void KilledUnit (Unit *victim) override
 
void JustSummoned (Creature *summon) override
 
void DoAction (int32 actionId) override
 
void MovementInform (uint32 type, uint32 id) override
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &) override
 
void JustDied (Unit *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void OnPossess (bool)
 
void EnterCombat (Unit *) override
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoResetThreat ()
 
float DoGetThreat (Unit *unit)
 
void DoModifyThreatPercent (Unit *unit, int32 pct)
 
void DoTeleportTo (float x, float y, float z, uint32 time=0)
 
void DoTeleportTo (float const pos[4])
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportAll (float x, float y, float z, float o)
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
PlayerGetPlayerAtMinimumRange (float minRange)
 
CreatureDoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo constSelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
void SetCombatMovement (bool allowMovement)
 
bool IsCombatMovementAllowed () const
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
const T & DUNGEON_MODE (const T &normal5, const T &heroic10) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25, const T &heroic10, const T &heroic25) const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
 CreatureAI (Creature *creature)
 
virtual ~CreatureAI ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void IsSummonedBy (Unit *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted () const
 
virtual void JustRespawned ()
 
void OnCharmed (bool apply) override
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary constGetBoundary () const
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectAggroTarget targetType)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void SpellInterrupted (uint32, uint32)
 
void AttackStartCaster (Unit *victim, float dist)
 
void DoCast (uint32 spellId)
 
void DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
void DoCastVictim (uint32 spellId, bool triggered=false)
 
void DoCastAOE (uint32 spellId, bool triggered=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spellId)
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual bool sOnDummyEffect (Unit *, uint32, SpellEffIndex)
 
virtual void sOnGameEvent (bool, uint16)
 

Private Attributes

InstanceScript_instanceScript
 
SummonList _summons
 
EventMap _events
 
KrickPhase _phase
 
ObjectGuid _outroNpcGUID
 
ObjectGuid _tyrannusGUID
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason { EVADE_REASON_NO_HOSTILES, EVADE_REASON_BOUNDARY, EVADE_REASON_SEQUENCE_BREAK, EVADE_REASON_OTHER }
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Public Attributes inherited from ScriptedAI
bool IsFleeing
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
bool CheckBoundary (Position const *who=nullptr) const
 
void SetBoundary (CreatureBoundary const *boundary)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

boss_krick::boss_krickAI::boss_krickAI ( Creature creature)
inline
287  : ScriptedAI(creature), _instanceScript(creature->GetInstanceScript()), _summons(creature)
288  {
289  Initialize();
290  }
ScriptedAI(Creature *creature)
Definition: ScriptedCreature.cpp:100
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
SummonList _summons
Definition: boss_krickandick.cpp:492
void Initialize()
Definition: boss_krickandick.cpp:292
InstanceScript * _instanceScript
Definition: boss_krickandick.cpp:491

+ Here is the call graph for this function:

Member Function Documentation

void boss_krick::boss_krickAI::DoAction ( int32  actionId)
inlineoverridevirtual

Reimplemented from UnitAI.

332  {
333  if (actionId == ACTION_OUTRO)
334  {
336  if (tyrannusPtr)
337  tyrannusPtr->NearTeleportTo(outroPos[1].GetPositionX(), outroPos[1].GetPositionY(), outroPos[1].GetPositionZ(), outroPos[1].GetOrientation());
338  else
340 
341  tyrannusPtr->SetCanFly(true);
342  me->GetMotionMaster()->MovePoint(POINT_KRICK_INTRO, outroPos[0].GetPositionX(), outroPos[0].GetPositionY(), outroPos[0].GetPositionZ());
343  tyrannusPtr->SetFacingToObject(me);
344  }
345  }
Definition: Object.h:61
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
Definition: Creature.h:467
Definition: boss_krickandick.cpp:117
Creature *const me
Definition: CreatureAI.h:71
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
void SetFacingToObject(WorldObject const *object)
Definition: Unit.cpp:15787
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
void NearTeleportTo(float x, float y, float z, float orientation, bool casting=false)
Definition: Unit.cpp:15407
Definition: boss_krickandick.cpp:112
bool SetCanFly(bool enable)
Definition: Unit.cpp:15899
Definition: pit_of_saron.h:38
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: pit_of_saron.h:50
static const Position outroPos[8]
Definition: boss_krickandick.cpp:121
InstanceScript * _instanceScript
Definition: boss_krickandick.cpp:491
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346

+ Here is the call graph for this function:

Creature* boss_krick::boss_krickAI::GetIck ( )
inline
309  {
311  }
Definition: pit_of_saron.h:30
Creature *const me
Definition: CreatureAI.h:71
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
InstanceScript * _instanceScript
Definition: boss_krickandick.cpp:491

+ Here is the call graph for this function:

void boss_krick::boss_krickAI::Initialize ( void  )
inline
293  {
297  }
ObjectGuid _outroNpcGUID
Definition: boss_krickandick.cpp:496
ObjectGuid _tyrannusGUID
Definition: boss_krickandick.cpp:497
Definition: boss_krickandick.cpp:106
KrickPhase _phase
Definition: boss_krickandick.cpp:495
void Clear()
Definition: ObjectGuid.h:215

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boss_krick::boss_krickAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from ScriptedAI.

322  {
323  _summons.Summon(summon);
324  if (summon->GetEntry() == NPC_EXPLODING_ORB)
325  {
326  summon->CastSpell(summon, SPELL_EXPLODING_ORB, true);
327  summon->CastSpell(summon, SPELL_AUTO_GROW, true);
328  }
329  }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:92
SummonList _summons
Definition: boss_krickandick.cpp:492
Definition: pit_of_saron.h:87
Definition: boss_krickandick.cpp:38
Definition: boss_krickandick.cpp:37
uint32 GetEntry() const
Definition: Object.h:107
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869

+ Here is the call graph for this function:

void boss_krick::boss_krickAI::KilledUnit ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

314  {
315  if (victim->GetTypeId() != TYPEID_PLAYER)
316  return;
317 
319  }
Definition: boss_krickandick.cpp:52
TypeID GetTypeId() const
Definition: Object.h:113
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
Definition: ObjectGuid.h:33

+ Here is the call graph for this function:

void boss_krick::boss_krickAI::MovementInform ( uint32  type,
uint32  id 
)
inlineoverridevirtual

Reimplemented from CreatureAI.

348  {
349  if (type != POINT_MOTION_TYPE || id != POINT_KRICK_INTRO)
350  return;
351 
354  _events.Reset();
356  }
void Reset()
Definition: EventMap.cpp:20
Definition: boss_krickandick.cpp:88
Definition: boss_krickandick.cpp:57
EventMap _events
Definition: boss_krickandick.cpp:493
Definition: boss_krickandick.cpp:117
KrickPhase _phase
Definition: boss_krickandick.cpp:495
Definition: boss_krickandick.cpp:107
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: MotionMaster.h:46

+ Here is the call graph for this function:

void boss_krick::boss_krickAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

300  {
301  _events.Reset();
302  Initialize();
303 
306  }
Definition: Unit.h:674
void Reset()
Definition: EventMap.cpp:20
Definition: Unit.h:1129
EventMap _events
Definition: boss_krickandick.cpp:493
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Creature *const me
Definition: CreatureAI.h:71
void Initialize()
Definition: boss_krickandick.cpp:292
Definition: UpdateFields.h:109
void SetReactState(ReactStates st)
Definition: Creature.h:502

+ Here is the call graph for this function:

void boss_krick::boss_krickAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

HACK: Creature's can't have MOVEMENTFLAG_FLYING

Todo:
Tyrannus starts killing Krick.

HACK: Creature's can't have MOVEMENTFLAG_FLYING

Reimplemented from ScriptedAI.

359  {
360  if (_phase != PHASE_OUTRO)
361  return;
362 
363  _events.Update(diff);
364 
365  while (uint32 eventId = _events.ExecuteEvent())
366  {
367  switch (eventId)
368  {
369  case EVENT_OUTRO_1:
370  {
372  temp->DespawnOrUnsummon();
373 
374  Creature* jainaOrSylvanas = NULL;
377  else
379 
380  if (jainaOrSylvanas)
381  {
382  jainaOrSylvanas->GetMotionMaster()->MovePoint(0, outroPos[3]);
383  _outroNpcGUID = jainaOrSylvanas->GetGUID();
384  }
386  break;
387  }
388  case EVENT_OUTRO_2:
389  if (Creature* jainaOrSylvanas = ObjectAccessor::GetCreature(*me, _outroNpcGUID))
390  {
391  jainaOrSylvanas->SetFacingToObject(me);
392  me->SetFacingToObject(jainaOrSylvanas);
394  jainaOrSylvanas->AI()->Talk(SAY_JAYNA_OUTRO_2);
395  else
396  jainaOrSylvanas->AI()->Talk(SAY_SYLVANAS_OUTRO_2);
397  }
399  break;
400  case EVENT_OUTRO_3:
403  break;
404  case EVENT_OUTRO_4:
405  if (Creature* jainaOrSylvanas = ObjectAccessor::GetCreature(*me, _outroNpcGUID))
406  {
408  jainaOrSylvanas->AI()->Talk(SAY_JAYNA_OUTRO_4);
409  else
410  jainaOrSylvanas->AI()->Talk(SAY_SYLVANAS_OUTRO_4);
411  }
413  break;
414  case EVENT_OUTRO_5:
417  break;
418  case EVENT_OUTRO_6:
420  {
421  tyrannus->SetSpeed(MOVE_FLIGHT, 3.5f, true);
422  tyrannus->GetMotionMaster()->MovePoint(1, outroPos[4]);
423  _tyrannusGUID = tyrannus->GetGUID();
424  }
426  break;
427  case EVENT_OUTRO_7:
429  tyrannus->AI()->Talk(SAY_TYRANNUS_OUTRO_7);
431  break;
432  case EVENT_OUTRO_8:
438  break;
439  case EVENT_OUTRO_9:
442  // there shall be some visual spell effect
444  tyrannus->CastSpell(me, SPELL_NECROMANTIC_POWER, true); //not sure if it's the right spell :/
446  break;
447  case EVENT_OUTRO_10:
453  break;
454  case EVENT_OUTRO_11:
455  DoCast(me, SPELL_KRICK_KILL_CREDIT); // don't really know if we need it
457  me->SetHealth(0);
459  break;
460  case EVENT_OUTRO_12:
462  tyrannus->AI()->Talk(SAY_TYRANNUS_OUTRO_9);
464  break;
465  case EVENT_OUTRO_13:
466  if (Creature* jainaOrSylvanas = ObjectAccessor::GetCreature(*me, _outroNpcGUID))
467  {
469  jainaOrSylvanas->AI()->Talk(SAY_JAYNA_OUTRO_10);
470  else
471  jainaOrSylvanas->AI()->Talk(SAY_SYLVANAS_OUTRO_10);
472  }
473  // End of OUTRO. for now...
476  tyrannus->GetMotionMaster()->MovePoint(0, outroPos[7]);
477  break;
478  case EVENT_OUTRO_END:
480  tyrannus->DespawnOrUnsummon();
481 
482  me->DisappearAndDie();
483  break;
484  default:
485  break;
486  }
487  }
488  }
Definition: Unit.h:214
Definition: Object.h:61
Definition: Unit.h:605
Definition: boss_krickandick.cpp:60
Definition: boss_krickandick.cpp:92
Definition: boss_krickandick.cpp:91
Definition: boss_krickandick.cpp:69
Definition: boss_krickandick.cpp:90
Definition: forge_of_souls.h:42
Definition: boss_krickandick.cpp:93
Definition: boss_krickandick.cpp:67
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
Definition: boss_krickandick.cpp:88
ObjectGuid _outroNpcGUID
Definition: boss_krickandick.cpp:496
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: forge_of_souls.h:33
Definition: Unit.h:800
Definition: pit_of_saron.h:36
Definition: Creature.h:467
Definition: boss_krickandick.cpp:100
Definition: boss_krickandick.cpp:94
EventMap _events
Definition: boss_krickandick.cpp:493
Definition: boss_krickandick.cpp:45
Definition: forge_of_souls.h:44
Definition: boss_krickandick.cpp:44
void AddUnitMovementFlag(uint32 f)
Definition: Unit.h:2107
Definition: boss_krickandick.cpp:89
Definition: SharedDefines.h:1000
Creature *const me
Definition: CreatureAI.h:71
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
Definition: boss_krickandick.cpp:72
void SetFacingToObject(WorldObject const *object)
Definition: Unit.cpp:15787
Definition: boss_krickandick.cpp:99
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: boss_krickandick.cpp:58
ObjectGuid _tyrannusGUID
Definition: boss_krickandick.cpp:497
Definition: boss_krickandick.cpp:73
Definition: boss_krickandick.cpp:95
KrickPhase _phase
Definition: boss_krickandick.cpp:495
Definition: boss_krickandick.cpp:107
CreatureAI * AI() const
Definition: Creature.h:525
Definition: boss_krickandick.cpp:98
uint32_t uint32
Definition: Define.h:150
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: pit_of_saron.h:38
void RemoveUnitMovementFlag(uint32 f)
Definition: Unit.h:2108
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: boss_krickandick.cpp:101
void Update(uint32 time)
Definition: EventMap.h:54
Definition: boss_krickandick.cpp:74
Definition: boss_krickandick.cpp:70
ObjectGuid const & GetGUID() const
Definition: Object.h:105
static const Position outroPos[8]
Definition: boss_krickandick.cpp:121
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
Definition: boss_krickandick.cpp:97
Definition: boss_krickandick.cpp:71
void SetStandState(UnitStandStateType state, uint32 animKitID=0)
Definition: Unit.cpp:12772
Definition: boss_krickandick.cpp:42
void SetHealth(uint32 val)
Definition: Unit.cpp:11537
Definition: boss_krickandick.cpp:59
Definition: boss_krickandick.cpp:68
Definition: boss_krickandick.cpp:96
void DisappearAndDie()
Definition: Creature.cpp:256
InstanceScript * _instanceScript
Definition: boss_krickandick.cpp:491
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346
Definition: Unit.h:788

+ Here is the call graph for this function:

Member Data Documentation

EventMap boss_krick::boss_krickAI::_events
private
InstanceScript* boss_krick::boss_krickAI::_instanceScript
private
ObjectGuid boss_krick::boss_krickAI::_outroNpcGUID
private
KrickPhase boss_krick::boss_krickAI::_phase
private
SummonList boss_krick::boss_krickAI::_summons
private
ObjectGuid boss_krick::boss_krickAI::_tyrannusGUID
private

The documentation for this struct was generated from the following file: