mr:barrel_level_object
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:barrel_level_object [2026/04/04 18:45] – Improve wiki page compliance with documentation standards Qwen Assistant | mr:barrel_level_object [2026/04/04 18:50] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Barrel Level Object - Code References ====== | ||
| + | **Entity Kind**: `Barrel` | ||
| + | |||
| + | **Entity Type**: Level Object (Pushable, Flammable) | ||
| + | |||
| + | **Description**: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | **Key Implementation Details**: | ||
| + | <code java> | ||
| + | public class Barrel extends LevelObject { | ||
| + | private boolean burned = false; | ||
| + | |||
| + | public Barrel(int pos) { | ||
| + | super(pos); | ||
| + | textureFile = " | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean pushable(Char hero) { | ||
| + | return true; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public void burn() { | ||
| + | if (burned) return; | ||
| + | burned = true; | ||
| + | // Play burning animation | ||
| + | Sample.INSTANCE.play(Assets.SND_EXPLOSION); | ||
| + | LiquidFlame fire = Blob.seed(getPos(), | ||
| + | GameScene.add(fire); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public void bump(Presser presser) { | ||
| + | burn(); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public boolean flammable() { | ||
| + | return true; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Java Usage ===== | ||
| + | * Used in [[https:// | ||
| + | * Registered in [[https:// | ||
| + | * Used in [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | **English** (`values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | **Russian** (`values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | * Referenced in [[https:// | ||
| + | * Referenced in [[https:// | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
mr/barrel_level_object.txt · Last modified: by 127.0.0.1
