Ticket #11 (accepted task)

Opened 3 years ago

Last modified 16 months ago

Document classes and methods

Reported by: ibboard Owned by: ibboard
Priority: major Milestone:
Component: WarFoundry-API Version:
Keywords: Cc:
Blocked By: Blocking:

Description

Public methods should be documented so that people know what they do. Documentation should need to be minimal on classes as the method name should be descriptive and small enough to work out what it does, but contracts can sometimes still be best described in documentation.

Change History

comment:1 Changed 3 years ago by ibboard

  • Status changed from new to accepted

comment:2 Changed 3 years ago by ibboard

  • Summary changed from Document methods to Document classes and methods

comment:3 Changed 3 years ago by ibboard

(In r20) Re #11 - Documentation

  • Document Stats and SystemStats at class level to explain the difference
  • Document WarFoundryXmlFactory at class level

Re #13 - XPath for XML loading

  • Load categories using XPath - needs fixing so we can do a proper "categories/cat" query

Re #10 - Refactoring for readability

  • Fix method signature for getting number from attribute added in r19
  • Refactor more code in to GetExtraData method
  • Separate out loading of categories for GameSystem

comment:4 Changed 3 years ago by ibboard

(In r41) Re #10 and re #11 - Refactor code and document code

  • Split LoadFile method out in to smaller methods
  • Document possible exception from IWarFoundryFactory object loading method
  • Catch exception in WarFoundryLoader file loading

comment:5 Changed 3 years ago by ibboard

(In r62) Re #11 - Document methods

  • Document FileLoadFailure and rationalise constructors

Also added parameter for holding the Exception that caused the failure

comment:6 Changed 3 years ago by ibboard

(In r81) Re #11 - Document classes and methods

  • Document methods in UnitType and Category classes

comment:7 Changed 16 months ago by ibboard

  • Component changed from General/Unknown to WarFoundry-API

Most important part for this ticket is the API.

Note: See TracTickets for help on using tickets.