Table of Contents

TAXATION_FUNCTION

Abstract class
Category: Asset

Parent class: ASSET
Inherited by:

List of TAXATION_FUNCTION assets

Properties


MinimalTimeBetweenVisits

Serialized


Texture

Serialized


NameKey

Serialized


TaxedNameKey

Serialized


DescriptionKey

Serialized


CategoryKey

Serialized


IsActiveByDefault

Serialized


IsVisitBuilding

Serialized

If true, will visit building. If false, will visit buildable (part or building). If fails, will visit owner of taxable component.


IsOtherTax

Serialized

Functions


init

Virtual function

void init(instTaxationFunction)

Name Type Description
instTaxationFunction INST_TAXATION_FUNCTION

finalize

Virtual function

void finalize(instTaxationFunction)

Function called when taxation function is removed. You can cleanup components added during init (except TaxCollectables, those will be managed by the system).

Name Type Description
instTaxationFunction INST_TAXATION_FUNCTION

collect

Virtual function

INST_TAXATION_COLLECT_INFO collect(compTaxCollectable)

Function called every frame to compute how much to cumulate.

Name Type Description
compTaxCollectable COMP_TAX_COLLECTABLE

getMaximumAmountToCollect

Virtual function

integer_and_unsigned_integer getMaximumAmountToCollect(compTaxCollectable)

Name Type Description
compTaxCollectable COMP_TAX_COLLECTABLE

getMinimalTimeBetweenVisits

Virtual function

float getMinimalTimeBetweenVisits()


getTaxedCount

Virtual function

integer_and_unsigned_integer getTaxedCount(instTaxationFunction)

Name Type Description
instTaxationFunction INST_TAXATION_FUNCTION

registerAmountAvailableToCollect

Virtual function

void registerAmountAvailableToCollect(compTaxCollectable)

Name Type Description
compTaxCollectable COMP_TAX_COLLECTABLE