Beispiel #1
0
ORockets::ORockets(ZTime *ztime_, ZSettings *zsettings_) : ZObject(ztime_, zsettings_)
{
	object_name = "rockets";
	m_object_type = MAP_ITEM_OBJECT;
	m_object_id = ROCKETS_ITEM;
	width = 1;
	height = 1;
	width_pix = width * 16;
	height_pix = height * 16;
	attacked_by_explosives = true;

	InitTypeId(m_object_type, m_object_id);

	//max_health = ROCKETS_MAX_HEALTH;
	//health = max_health;
}
Beispiel #2
0
OMapObject::OMapObject(ZTime *ztime_, ZSettings *zsettings_, int object_i_) : ZObject(ztime_, zsettings_)
{
	SetType(object_i_);

	object_type = MAP_ITEM_OBJECT;
	width = 1;
	height = 1;
	width_pix = width * 16;
	height_pix = height * 16;
	attacked_by_explosives = true;

	InitTypeId(object_type, object_id);

	//max_health = MAP_OBJECT_MAX_HEALTH;
	//health = max_health;
}
Beispiel #3
0
RGrunt::RGrunt(ZTime *ztime_, ZSettings *zsettings_) : ZRobot(ztime_, zsettings_)
{
	hover_name = "Grunt";
	object_name = "grunt";

	can_snipe = true;

	InitTypeId(object_type, GRUNT);

	//object_id = GRUNT;
	//attack_radius = GRUNT_ATTACK_RADIUS;
	//max_health = GRUNT_MAX_HEALTH;
	//health = max_health;

	//damage = GRUNT_DAMAGE;
	//damage_chance = GRUNT_DAMAGE_CHANCE;
	//damage_int_time = GRUNT_ATTACK_SPEED;
}
Beispiel #4
0
RLaser::RLaser(ZTime *ztime_, ZSettings *zsettings_) : ZRobot(ztime_, zsettings_)
{
	hover_name = "Laser";
	object_name = "laser";

	can_snipe = true;

	InitTypeId(object_type, LASER);

	//object_id = LASER;
	//attack_radius = LASER_ATTACK_RADIUS;
	//max_health = LASER_MAX_HEALTH;
	//health = max_health;

	//damage = LASER_DAMAGE;
	//damage_chance = LASER_DAMAGE_CHANCE;
	//damage_int_time = LASER_ATTACK_SPEED;
}
Beispiel #5
0
RPsycho::RPsycho(ZTime *ztime_, ZSettings *zsettings_) : ZRobot(ztime_, zsettings_)
{
	hover_name = "Psychos";
	object_name = "psycho";

	can_snipe = true;

	InitTypeId(m_object_type, PSYCHO);

	//object_id = PSYCHO;
	//attack_radius = PSYCHO_ATTACK_RADIUS;
	//max_health = PSYCHO_MAX_HEALTH;
	//health = max_health;

	//damage = PSYCHO_DAMAGE;
	//damage_chance = PSYCHO_DAMAGE_CHANCE;
	//damage_int_time = PSYCHO_ATTACK_SPEED;


}
Beispiel #6
0
BBridge::BBridge(ZTime *ztime_, ZSettings *zsettings_, planet_type palette_, bool is_vertical_, unsigned short extra_links_) : ZBuilding(ztime_, zsettings_, palette_)
{
	object_name = "bridge";

	//render_img = NULL;
	//render_damaged_img = NULL;
	//render_destroyed_img = NULL;
	palette = palette_;
	is_vertical = is_vertical_;
	extra_links = extra_links_;
	do_rerender = true;
	do_revive_rerender = false;
	next_revive_rerender_time = 0;

	//max_health = BRIDGE_BUILDING_HEALTH;
	//health = max_health;

	last_process_health = max_health;

	ResetStats();

	InitTypeId(object_type, object_id);
}
Beispiel #7
0
OHut::OHut(ZTime *ztime_, ZSettings *zsettings_, int palette_) : ZObject(ztime_, zsettings_)
{
	palette = palette_;

	object_name = "hut";
	object_type = MAP_ITEM_OBJECT;
	object_id = HUT_ITEM;
	width = 1;
	height = 1;
	width_pix = width * 16;
	height_pix = height * 16;
	attacked_by_explosives = true;

	InitTypeId(object_type, object_id);

	//max_health = HUT_MAX_HEALTH;
	//health = max_health;

	next_hut_animal_time = 0;
	next_max_hut_animal_time = 0;

	SetMaxHutAnimals();
}