Third Person Cover Shooter  1.6
CoverShooter.AIFlashlight Class Reference

Takes commands from other components and turns a flashlight on and off depending on a situation. More...

Inheritance diagram for CoverShooter.AIFlashlight:
CoverShooter.AIItemBase CoverShooter.AIBase

Public Member Functions

void ToTakeFlashlight ()
 Registers a command to take out a flashlight. More...
 
void ToHideFlashlight ()
 Registers a command to hide a flashlight if taken out. More...
 
void ToTurnOnLight ()
 Registers a command to turn on light on the currently equipped item. More...
 
void ToLight ()
 Registers a command to equip a flashlight and turn it on. More...
 
void ToUnlight ()
 Registers a command to turn off light. More...
 
void OnEnterDarkness (DarkZone zone)
 Notified of an entrance to a dark area. More...
 
void OnLeaveDarkness (DarkZone zone)
 Notified of an exit out of a dark area. More...
 
- Public Member Functions inherited from CoverShooter.AIBase
void Message (string name)
 Sends a message to other components. More...
 
void Message (string name, object value)
 Sends a message to other components. More...
 

Protected Member Functions

override void Awake ()
 
- Protected Member Functions inherited from CoverShooter.AIItemBase
bool EquipWeapon (CharacterMotor motor)
 Equips any weapon if possible. More...
 
bool Equip (CharacterMotor motor, WeaponType type)
 Equips a weapon of specific kind if possible. More...
 
bool Equip (CharacterMotor motor, ToolType tool)
 Equips a specific tool if possible. More...
 
bool UnequipWeapon (CharacterMotor motor)
 Unequips the item if it is currently used. More...
 
bool Unequip (CharacterMotor motor, WeaponType type)
 Unequips the item if it is currently used. More...
 
bool Unequip (CharacterMotor motor, ToolType tool)
 Unequips the item if it is currently used. More...
 

Additional Inherited Members

- Public Attributes inherited from CoverShooter.AIItemBase
InventoryUsage InventoryUsage = InventoryUsage.autoFind
 How should the character inventory (if there is one) be used. More...
 
int InventoryIndex = 0
 Weapon index inside the inventory to use when usage is set to 'index'. More...
 

Detailed Description

Takes commands from other components and turns a flashlight on and off depending on a situation.

Member Function Documentation

◆ Awake()

override void CoverShooter.AIFlashlight.Awake ( )
protectedvirtual

Reimplemented from CoverShooter.AIItemBase.

◆ OnEnterDarkness()

void CoverShooter.AIFlashlight.OnEnterDarkness ( DarkZone  zone)

Notified of an entrance to a dark area.

◆ OnLeaveDarkness()

void CoverShooter.AIFlashlight.OnLeaveDarkness ( DarkZone  zone)

Notified of an exit out of a dark area.

◆ ToHideFlashlight()

void CoverShooter.AIFlashlight.ToHideFlashlight ( )

Registers a command to hide a flashlight if taken out.

◆ ToLight()

void CoverShooter.AIFlashlight.ToLight ( )

Registers a command to equip a flashlight and turn it on.

Will turn on the light on a weapon if present.

◆ ToTakeFlashlight()

void CoverShooter.AIFlashlight.ToTakeFlashlight ( )

Registers a command to take out a flashlight.

Ignored if currently equipped weapon already has a flashlight attached.

◆ ToTurnOnLight()

void CoverShooter.AIFlashlight.ToTurnOnLight ( )

Registers a command to turn on light on the currently equipped item.

◆ ToUnlight()

void CoverShooter.AIFlashlight.ToUnlight ( )

Registers a command to turn off light.


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