Show / Hide Table of Contents

    Class CreatureFactory

    Class that represents a factory of creatures.

    Inheritance
    System.Object
    CreatureFactory
    Implements
    ICreatureFactory
    IThingFactory
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Creatures
    Assembly: Fibula.Creatures.dll
    Syntax
    public class CreatureFactory : ICreatureFactory, IThingFactory

    Constructors

    | Improve this Doc View Source

    CreatureFactory(IApplicationContext, IItemFactory)

    Initializes a new instance of the CreatureFactory class.

    Declaration
    public CreatureFactory(IApplicationContext applicationContext, IItemFactory itemFactory)
    Parameters
    Type Name Description
    IApplicationContext applicationContext

    A reference to the application context.

    IItemFactory itemFactory

    A reference to the item factory in use.

    Properties

    | Improve this Doc View Source

    ApplicationContext

    Gets the application context.

    Declaration
    public IApplicationContext ApplicationContext { get; }
    Property Value
    Type Description
    IApplicationContext
    | Improve this Doc View Source

    ItemFactory

    Gets the item factory in use.

    Declaration
    public IItemFactory ItemFactory { get; }
    Property Value
    Type Description
    IItemFactory

    Methods

    | Improve this Doc View Source

    Create(IThingCreationArguments)

    Creates a new IThing.

    Declaration
    public IThing Create(IThingCreationArguments creationArguments)
    Parameters
    Type Name Description
    IThingCreationArguments creationArguments

    The arguments for the IThing creation.

    Returns
    Type Description
    IThing

    A new instance of the IThing.

    | Improve this Doc View Source

    CreateCreature(IThingCreationArguments)

    Creates a new implementation instance of ICreature depending on the chosen type.

    Declaration
    public ICreature CreateCreature(IThingCreationArguments creationArguments)
    Parameters
    Type Name Description
    IThingCreationArguments creationArguments

    The arguments for the IThing creation.

    Returns
    Type Description
    ICreature

    A new instance of the chosen ICreature implementation.

    Implements

    ICreatureFactory
    IThingFactory

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.