host htSetBulletScreenRect(x1, y1, x2, y2);

host htSetBulletManagerTexture(path);

host htAddBulletIdent(ident, x, y, w, h, size, colRadius);

host GetDegreeBetweenTwoPoints(x1, y1, x2, y2);

host htCreateEnemyWithSprite(iSprIndex, x, y, w, h, cx, cy, life, createFrame);
host htCreateEnemyWithSpritePath(path, x, y, w, h, cx, cy, life, createFrame);

host htSetEnemySpeed(id, vx, vy);
host htSetEnemySpeedVec(id, v, vec);
host htSetEnemyDeflection(id, d, start, last);

host htSetEnemyMovementAnimRect(id, x1, y1, w1, h1, x2, y2, w2, h2);
host htSetEnemyAttackAnim(id, x, y, w, h, id);
host htSetEnemyAttackedAnim(id, x, y, w, h, id);

host htSetEnemyColor(id, r, g, b, a);

host htMoveEnemyTo(id, dx, dy, start, last);
host htShootEnemyTo(id, v, vec);

host htBindScriptFuncToEnemy(id, name, dur, n);
host htBindDieFuncToEnemy(id, name);
host htGetEnemyX(id);
host htGetEnemyY(id);

host htShootBulletAtEnemyVec(id, ident, color, v, vec);
host htShootBulletAtEnemy(id, ident, color, vx, vy);

host htGetEnemySize();

host htRemoveEnemy(id);
host htSetEnemyLifeFrame(id, frame);
host htFadeEnemyIn(id, frame);


host htShootBulletToPlayer(ident, color, x, y, v);

host htBindScriptFuncToBullet(name, dur, maxtime);
host htRemoveCurrBullet();

host htShootBullet(ident, color, cx, cy, dx, dy, v);
host htInsertBulletXY(ident, color, cx, cy, vx, vy);
host htInsertBulletVec(ident, color, cx, cy, v, vec);

host htClearBullet();

// only available to the last inserted bullet
// so call these functions after insert bullet functions if you need
host htSetBulletSpeed		(vx, vy);
host htSetBulletSpeedEx		(vx, vy, startFrame);
host htSetBulletSpeedDgr	(v, vec);
host htSetBulletSpeedDgrEx	(v, vec, startFrame);
host htSetBulletDeflection	(deflection, accelerator);
host htSetBulletDeflectionEx	(deflection, accelerator, startFrame, stopAfterFrame);
host htSetBulletTextureRect	(ident, color);
host htSetBulletColor		(colorIndex);
host htSetBulletGravitation	(g);
host htSetBulletForce		(f, vec, isRelavate);
host htSetBulletAcceleration	(x, y, vec);
host htSetBulletAccelerationEx	(acc, start, end);

host htSetBulletReflectTime	(times, downReflect);
host htSetBulletPause		(before, frame);
host htSetBulletLifeTime	(time);
host htSetBulletRotation	(dgr);
host htSetBulletRenderDegree 	(dgr, flag);
host htSetBulletImmortal	(flag);

host htGetBulletCustom1		();
host htGetBulletCustom2		();
host htSetBulletCustom1		(c);
host htSetBulletCustom2		(c);