[work] update work list

This commit is contained in:
2019-08-16 22:39:49 +03:00
parent c0496f2e7c
commit bbf1438728
3 changed files with 26 additions and 23 deletions

22
WORK.md
View File

@@ -1,8 +1,20 @@
* bonuses in dota/death mod
* bonuses
* spawn bonus by timer
* eagle armor bonus for enemy
* tanks and bullets speed balancing
* network game series
* map packs (create in editor, import in game, save imported in local storage)
* improve bots
* game series
* network series
* save human state in classic game
* map packs
* create in editor
* import in game
* save imported in local storage
* database
* improve bots
* A star
* game config macro
* additional weapon (rockets)
* additional weapon
* mine
* display count
* bonus ammo
* screen gamepad (button enabled, count label)

View File

@@ -3,7 +3,6 @@ package ru.m.tankz.core;
import Type;
import ru.m.tankz.map.Grid;
enum EntityType {
EAGLE(eagle:Eagle);
TANK(tank:Tank);
@@ -12,16 +11,15 @@ enum EntityType {
BONUS(bonus:Bonus);
}
class EntityTypeResolver {
public static function of(entity:Dynamic):EntityType {
return switch (Type.typeof(entity)) {
case ValueType.TClass(Eagle): EntityType.EAGLE(cast entity);
case ValueType.TClass(Tank): EntityType.TANK(cast entity);
case ValueType.TClass(Bullet): EntityType.BULLET(cast entity);
case ValueType.TClass(GridCell): EntityType.CELL(cast entity);
case ValueType.TClass(Bonus): EntityType.BONUS(cast entity);
return switch Type.typeof(entity) {
case TClass(Eagle): EAGLE(cast entity);
case TClass(Tank): TANK(cast entity);
case TClass(Bullet): BULLET(cast entity);
case TClass(GridCell): CELL(cast entity);
case TClass(Bonus): BONUS(cast entity);
case x: null;
}
}
@@ -32,12 +30,4 @@ class EntityTypeResolver {
}
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;
}
}

View File

@@ -1,5 +1,6 @@
game:
friendlyFire: false
alignToGrid: true
map:
cell:
@@ -175,7 +176,7 @@ presets:
teams:
- {<<: *team_human}
- id: bot
spawnInterval: 3000
spawnInterval: 2000
life: 20
players:
- {<<: *bot, index: 0, control: bot-stupid}