/// <summary> /// Creates an ObjectBlock representing the module. /// </summary> /// <returns>An ObjectBlock representing the module.</returns> public ObjectBlock CreateModuleBlock() { ObjectBlock block = new ObjectBlock(null, new ModuleBehaviour()); block.AssignImage(images); return(block); }
/// <summary> /// Creates an ObjectBlock representing the player. /// </summary> /// <returns>An ObjectBlock representing the player.</returns> public ObjectBlock CreatePlayerBlock() { ObjectBlock block = new ObjectBlock(null, new PlayerBehaviour()); block.AssignImage(images); return(block); }
/// <summary> /// Creates an ObjectBlock representing a wildcard. /// </summary> /// <returns>An ObjectBlock representing a wildcard.</returns> public ObjectBlock CreateWildcardBlock(WildcardBehaviour wildcard) { if (wildcard == null) { throw new ArgumentNullException("wildcard"); } ObjectBlock block = new ObjectBlock(null, wildcard); block.AssignImage(images); return(block); }
public ObjectBlock CreateBlueprintBlock(BlueprintBehaviour behaviour) { if (behaviour == null) { throw new ArgumentNullException("behaviour"); } ObjectBlock block = new ObjectBlock(null, behaviour); block.AssignImage(images); return(block); }
/// <summary> /// Creates an ObjectBlock representing a given area. /// </summary> /// <param name="area">An object representing the behaviour of /// and information about the ObjectBlock which is to be created.</param> /// <returns>An ObjectBlock representing the given area.</returns> public ObjectBlock CreateAreaBlock(AreaBehaviour area) { if (area == null) { throw new ArgumentNullException("area"); } ObjectBlock block = new ObjectBlock(null, area); block.AssignImage(images); return(block); }
public ObjectBlock CreateInstanceBlock(InstanceBehaviour behaviour) { if (behaviour == null) { throw new ArgumentNullException("behaviour"); } ObjectBlock block = new ObjectBlock(null, behaviour); block.AssignImage(images); if (helper != null) { Brush brush = helper.GetBrushForType(behaviour.Nwn2Type); if (brush != null) { block.Colour = brush; } } return(block); }