Loading...
Searching...
No Matches
CityBuilderCore.IAttacker Interface Reference

Detailed Description

interface for any entity that attacks IAttackables and is fended of by DefenderComponents

Inheritance diagram for CityBuilderCore.IAttacker:
CityBuilderCore.AttackWalker CityBuilderCore.Tests.DebugAttacker

Public Member Functions

void Hurt (int damage)
 damages and potentially kills the attacker
 

Properties

Vector3 Position [get]
 position for defenders to attack
 

Member Function Documentation

◆ Hurt()

void CityBuilderCore.IAttacker.Hurt ( int damage)

damages and potentially kills the attacker

Parameters
damagethe amount of damage to do

Implemented in CityBuilderCore.AttackWalker.

Property Documentation

◆ Position

Vector3 CityBuilderCore.IAttacker.Position
get

position for defenders to attack

Implemented in CityBuilderCore.AttackWalker.