Ticket #514 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

FIFE::Instance should inherit blocking property from FIFE::Model

Reported by: prock Owned by: helios2000
Priority: normal Milestone: 0.3.3
Component: engine/core/model Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Time planned:
Time remaining: Time spent:

Description

Currently FIFE::Model stores a blocking property. The pathfinder uses this property to determine if a cell contains blocking instances. Unfortunately this produces a problem when you have multiple instances using the same model. All instances using that model will be blocking causing unwanted behavior if there a any exceptions.

The solution to this would be to add a blocking property to FIFE::Instance and have it inherit the blocking property value from Model. This allows a default blocking value to be applied to all instances using a model AND allow it to be overridden by the client if the need arises. The pathfinder would query the blocking property of the instance and not the model and continue to work as it is now.

As part of this ticket the implementer should also add the ability to set an instances blocking property (overriding the model blocking property value) with the editor and store that value in the map file format. Also update the map format document on the Wiki.

Change History

comment:1 Changed 4 years ago by chewie

  • Owner changed from FIFE to helios2000
  • Summary changed from FIFE::Instance should inheirt blocking property from FIFE::Model to FIFE::Instance should inherit blocking property from FIFE::Model

comment:2 Changed 4 years ago by helios2000

  • Status changed from new to closed
  • Resolution set to fixed

(In [3517]) * Instances now inherit blocking property from objects. Modified the ObjectEdit? Plugin, so you can use it to change the object blocking or the Instance blocking individually. Note: Object blocking changes, overwrite the instance blocking property. closes #514

Note: See TracTickets for help on using tickets.