C# Class Aura.Channel.World.Dungeons.Puzzles.MonsterGroup

Exibir arquivo Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
AddDrop ( Item item ) : void

Adds item to the drops of one random monster in this group.

AddKeyForLock ( PuzzlePlace lockPlace ) : void

Adds key for lock place to a random monster of this group as a drop.

Allocate ( DungeonMonsterGroupData groupData ) : void

Creates monsters from group data and adds them to internal list.

MonsterGroup ( string name, Aura.Channel.World.Dungeons.Puzzles.Puzzle puzzle, PuzzlePlace place, Placement spawnPosition = Placement.Random ) : Aura.Channel.World.Entities

Creates new monster group.

Spawn ( ) : void

Spawns monsters from internal list.

Private Methods

Method Description
OnDeath ( Creature creature, Creature killer ) : void

Raised when one of the monsters dies.

Method Details

AddDrop() public method

Adds item to the drops of one random monster in this group.
public AddDrop ( Item item ) : void
item Item
return void

AddKeyForLock() public method

Adds key for lock place to a random monster of this group as a drop.
public AddKeyForLock ( PuzzlePlace lockPlace ) : void
lockPlace PuzzlePlace
return void

Allocate() public method

Creates monsters from group data and adds them to internal list.
public Allocate ( DungeonMonsterGroupData groupData ) : void
groupData DungeonMonsterGroupData
return void

MonsterGroup() public method

Creates new monster group.
public MonsterGroup ( string name, Aura.Channel.World.Dungeons.Puzzles.Puzzle puzzle, PuzzlePlace place, Placement spawnPosition = Placement.Random ) : Aura.Channel.World.Entities
name string
puzzle Aura.Channel.World.Dungeons.Puzzles.Puzzle
place PuzzlePlace
spawnPosition Placement
return Aura.Channel.World.Entities

Spawn() public method

Spawns monsters from internal list.
public Spawn ( ) : void
return void