Loading...
Searching...
No Matches
CityBuilderCore.ExpandableOffGridLink Class Reference

Detailed Description

specialized version of OffGridLink for expandable buildings
adjusts cost and distance according to the linear expansion of the building

https://citybuilder.softleitner.com/manual/buildings

Inheritance diagram for CityBuilderCore.ExpandableOffGridLink:
CityBuilderCore.OffGridLink CityBuilderCore.IGridLink

Public Member Functions

override void Walk (Walker walker, float moved, Vector2Int start)
 walker movement is done here while a walker is traversing a link
this can be used to move walkers in atypical ways
for example when moving up ramps or across bridges
 

Public Attributes

ExpandableBuilding ExpandableBuilding
 
int MultipliedCost
 
float MultipliedDistance
 

Protected Member Functions

override int getCost ()
 
override float getDistance ()
 
override void Start ()
 

Additional Inherited Members

Member Function Documentation

◆ getCost()

override int CityBuilderCore.ExpandableOffGridLink.getCost ( )
protectedvirtual

Reimplemented from CityBuilderCore.OffGridLink.

◆ getDistance()

override float CityBuilderCore.ExpandableOffGridLink.getDistance ( )
protectedvirtual

Reimplemented from CityBuilderCore.OffGridLink.

◆ Start()

override void CityBuilderCore.ExpandableOffGridLink.Start ( )
inlineprotectedvirtual

Reimplemented from CityBuilderCore.OffGridLink.

◆ Walk()

override void CityBuilderCore.ExpandableOffGridLink.Walk ( Walker walker,
float moved,
Vector2Int start )
inlinevirtual

walker movement is done here while a walker is traversing a link
this can be used to move walkers in atypical ways
for example when moving up ramps or across bridges

Parameters
walkerthe walker moving across the link
movedhow much the walker has already moved
startthe point the walker started at, relevant in bidirectional links

Reimplemented from CityBuilderCore.OffGridLink.