[work] update work list
This commit is contained in:
22
WORK.md
22
WORK.md
@@ -1,8 +1,20 @@
|
|||||||
* bonuses in dota/death mod
|
* bonuses
|
||||||
|
* spawn bonus by timer
|
||||||
|
* eagle armor bonus for enemy
|
||||||
* tanks and bullets speed balancing
|
* tanks and bullets speed balancing
|
||||||
* network game series
|
* game series
|
||||||
* map packs (create in editor, import in game, save imported in local storage)
|
* network series
|
||||||
|
* save human state in classic game
|
||||||
|
* map packs
|
||||||
|
* create in editor
|
||||||
|
* import in game
|
||||||
|
* save imported in local storage
|
||||||
|
* database
|
||||||
* improve bots
|
* improve bots
|
||||||
* save human state in classic game
|
* A star
|
||||||
* game config macro
|
* game config macro
|
||||||
* additional weapon (rockets)
|
* additional weapon
|
||||||
|
* mine
|
||||||
|
* display count
|
||||||
|
* bonus ammo
|
||||||
|
* screen gamepad (button enabled, count label)
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package ru.m.tankz.core;
|
|||||||
import Type;
|
import Type;
|
||||||
import ru.m.tankz.map.Grid;
|
import ru.m.tankz.map.Grid;
|
||||||
|
|
||||||
|
|
||||||
enum EntityType {
|
enum EntityType {
|
||||||
EAGLE(eagle:Eagle);
|
EAGLE(eagle:Eagle);
|
||||||
TANK(tank:Tank);
|
TANK(tank:Tank);
|
||||||
@@ -12,16 +11,15 @@ enum EntityType {
|
|||||||
BONUS(bonus:Bonus);
|
BONUS(bonus:Bonus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class EntityTypeResolver {
|
class EntityTypeResolver {
|
||||||
|
|
||||||
public static function of(entity:Dynamic):EntityType {
|
public static function of(entity:Dynamic):EntityType {
|
||||||
return switch (Type.typeof(entity)) {
|
return switch Type.typeof(entity) {
|
||||||
case ValueType.TClass(Eagle): EntityType.EAGLE(cast entity);
|
case TClass(Eagle): EAGLE(cast entity);
|
||||||
case ValueType.TClass(Tank): EntityType.TANK(cast entity);
|
case TClass(Tank): TANK(cast entity);
|
||||||
case ValueType.TClass(Bullet): EntityType.BULLET(cast entity);
|
case TClass(Bullet): BULLET(cast entity);
|
||||||
case ValueType.TClass(GridCell): EntityType.CELL(cast entity);
|
case TClass(GridCell): CELL(cast entity);
|
||||||
case ValueType.TClass(Bonus): EntityType.BONUS(cast entity);
|
case TClass(Bonus): BONUS(cast entity);
|
||||||
case x: null;
|
case x: null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -32,12 +30,4 @@ class EntityTypeResolver {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public static function asCall<T, R>(entity:Entity, type:Class<T>, fun:T->R, ?defaultResult:R):R {
|
|
||||||
var e:T = as(entity, type);
|
|
||||||
if (e != null) {
|
|
||||||
return fun(e);
|
|
||||||
}
|
|
||||||
return defaultResult;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
game:
|
game:
|
||||||
friendlyFire: false
|
friendlyFire: false
|
||||||
|
alignToGrid: true
|
||||||
|
|
||||||
map:
|
map:
|
||||||
cell:
|
cell:
|
||||||
@@ -175,7 +176,7 @@ presets:
|
|||||||
teams:
|
teams:
|
||||||
- {<<: *team_human}
|
- {<<: *team_human}
|
||||||
- id: bot
|
- id: bot
|
||||||
spawnInterval: 3000
|
spawnInterval: 2000
|
||||||
life: 20
|
life: 20
|
||||||
players:
|
players:
|
||||||
- {<<: *bot, index: 0, control: bot-stupid}
|
- {<<: *bot, index: 0, control: bot-stupid}
|
||||||
|
|||||||
Reference in New Issue
Block a user