Package com.deco2800.game.components.Environmental


package com.deco2800.game.components.Environmental
  • Class
    Description
    class containing collision effects defined by the CollisionEffect enum Entities implementing this must also implement ColliderComponent, PhysicsComponent and EnvironmentalComponent To make the effect AoE, a hitboxcomponent must also be added (change the size of hitboxcomponent to change AoE) At this stage, only speed is supported as an AoE effect By default, collision effects impact both players and NPCs.
    Collision effect
    Effect target
    Universal component used for environmental objects.
    Enum containing the associate values for the environmental component An environmental component has: resourceType: The type of resource resourceValue: The number of resources to be returned associated with resource type E.g A cobweb has resourceValue = 0, speedModifier = 0.6 indicating zero resources will be given when broken and when a player walks through it, their speed is reduced by 40%
    Types of resources
    ValueTuple<ResourceTypes,Integer>
    Tuple for passing the values of environmental objects