DoopelPonger
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
EditorAttackInformation Class Referenceabstract

Top level serialization class for creatting attack patterns in the Inspector. More...

Inheritance diagram for EditorAttackInformation:
Inheritance graph
[legend]
Collaboration diagram for EditorAttackInformation:
Collaboration graph
[legend]

Public Member Functions

void Awake ()
 Initializes the actionType and attackType enums. More...
 
- Public Member Functions inherited from EditorActionInformation
List< string > ConvertPropertiesToStrings ()
 Convert each property into a string. Each element of the list should be a single property in the json like structure of <property name>:<value> with no comma or curly brackets. More...
 
void FillPropertiesFromString (string objectString)
 Convert a string with all properties into this object. The parameter objectString is generated from calling the ConvertPropertiesToString method, and has each element of the array concatenated with a ,. More...
 
abstract CoopActionInformation ToCoopActionInformation ()
 Convert this object from the Inspector information into the data that is used during gameplay. More...
 

Public Attributes

CoopBallManager.SpawnLocation spawnLocation
 
- Public Attributes inherited from EditorActionInformation
GameObject m_gameObject
 
Range delayBetweenActions
 

Protected Member Functions

override void FillChildPropertiesFromString (string objectString)
 Construct the child class based on the string that was serialized. See the method FillPropertiesFromString for more information. That method is the public method that calls this method when serializing. More...
 
override List< string > ConvertChildPropertiesToStrings ()
 Convert all properties of the implementation class that should be serialized to a string. See the method ConvertPropertiesToString for more information. That method is the public method that calls this method when serializing. More...
 
abstract CoopAttackInformation.AttackType GetAttackType ()
 
abstract List< string > ConvertAttackPropertiesToStrings ()
 See ConvertChildPropertiesToString in the EditorActionInformation class, as this is the same method expect for attack specific properties. More...
 
abstract void FillAttackPropertiesFromString (string objectString)
 See FillChildPropertiesFromString in the EditorActionInformation class, as this is the same method expect for attack specific properties. More...
 

Protected Attributes

CoopAttackInformation.AttackType attackType
 
- Protected Attributes inherited from EditorActionInformation
CoopActionInformation.ActionType actionType
 

Detailed Description

Top level serialization class for creatting attack patterns in the Inspector.

Any kind of action for SchmittyDoop that fires bullets should implement this class. This class is used in the Inspector to configure the data needed by Schmitty Doop to perform the attacks.

Member Function Documentation

◆ Awake()

void EditorAttackInformation.Awake ( )

Initializes the actionType and attackType enums.

◆ ConvertAttackPropertiesToStrings()

abstract List<string> EditorAttackInformation.ConvertAttackPropertiesToStrings ( )
protectedpure virtual

See ConvertChildPropertiesToString in the EditorActionInformation class, as this is the same method expect for attack specific properties.

Returns
See ConvertChildPropertiesToString in EditorActionInformation.

Implemented in EditorLaserAttackInformation, EditorBadBallAttackInformation, EditorBallSplitterAttackInformation, and EditorShotgunAttackInformation.

◆ ConvertChildPropertiesToStrings()

override List<string> EditorAttackInformation.ConvertChildPropertiesToStrings ( )
protectedvirtual

Convert all properties of the implementation class that should be serialized to a string. See the method ConvertPropertiesToString for more information. That method is the public method that calls this method when serializing.

Returns
Each property of the child class that should be serialized.

Implements EditorActionInformation.

◆ FillAttackPropertiesFromString()

abstract void EditorAttackInformation.FillAttackPropertiesFromString ( string  objectString)
protectedpure virtual

See FillChildPropertiesFromString in the EditorActionInformation class, as this is the same method expect for attack specific properties.

Parameters
objectStringSee FillChildPropertiesFromString in EditorActionInformation.

Implemented in EditorBadBallAttackInformation, EditorLaserAttackInformation, EditorBallSplitterAttackInformation, and EditorShotgunAttackInformation.

◆ FillChildPropertiesFromString()

override void EditorAttackInformation.FillChildPropertiesFromString ( string  objectString)
protectedvirtual

Construct the child class based on the string that was serialized. See the method FillPropertiesFromString for more information. That method is the public method that calls this method when serializing.

Parameters
Theserialized string of all the properties in this object.

Implements EditorActionInformation.

◆ GetAttackType()

abstract CoopAttackInformation.AttackType EditorAttackInformation.GetAttackType ( )
protectedpure virtual

Member Data Documentation

◆ attackType

CoopAttackInformation.AttackType EditorAttackInformation.attackType
protected

The type of attack that should be performed.

◆ spawnLocation

CoopBallManager.SpawnLocation EditorAttackInformation.spawnLocation

The location the attack should spawn from.


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