/** Reads the moveinfo from a file. */ public void read(BinaryReader f) { this.start_origin = f.ReadVector(); this.start_angles = f.ReadVector(); this.end_origin = f.ReadVector(); this.end_angles = f.ReadVector(); this.sound_start = f.ReadInt32(); this.sound_middle = f.ReadInt32(); this.sound_end = f.ReadInt32(); this.accel = f.ReadSingle(); this.speed = f.ReadSingle(); this.decel = f.ReadSingle(); this.distance = f.ReadSingle(); this.wait = f.ReadSingle(); this.state = f.ReadInt32(); this.dir = f.ReadVector(); this.current_speed = f.ReadSingle(); this.move_speed = f.ReadSingle(); this.next_speed = f.ReadSingle(); this.remaining_distance = f.ReadSingle(); this.decel_distance = f.ReadSingle(); this.endfunc = (EntThinkAdapter)f.ReadAdapter(); }
public mmove_t(int firstframe, int lastframe, mframe_t[] frame, EntThinkAdapter endfunc) { this.firstframe = firstframe; this.lastframe = lastframe; this.frame = frame; this.endfunc = endfunc; }
/** Writes the monsterinfo to the file.*/ public void read(BinaryReader f) { if (f.ReadBoolean()) { this.currentmove = new(); this.currentmove.read(f); } else { this.currentmove = null; } this.aiflags = f.ReadInt32(); this.nextframe = f.ReadInt32(); this.scale = f.ReadSingle(); this.stand = (EntThinkAdapter)f.ReadAdapter(); this.idle = (EntThinkAdapter)f.ReadAdapter(); this.search = (EntThinkAdapter)f.ReadAdapter(); this.walk = (EntThinkAdapter)f.ReadAdapter(); this.run = (EntThinkAdapter)f.ReadAdapter(); this.dodge = (EntDodgeAdapter)f.ReadAdapter(); this.attack = (EntThinkAdapter)f.ReadAdapter(); this.melee = (EntThinkAdapter)f.ReadAdapter(); this.sight = (EntInteractAdapter)f.ReadAdapter(); this.checkattack = (EntThinkAdapter)f.ReadAdapter(); this.pausetime = f.ReadSingle(); this.attack_finished = f.ReadSingle(); this.saved_goal = f.ReadVector(); this.search_time = f.ReadSingle(); this.trail_time = f.ReadSingle(); this.last_sighting = f.ReadVector(); this.attack_state = f.ReadInt32(); this.lefty = f.ReadInt32(); this.idle_time = f.ReadSingle(); this.linkcount = f.ReadInt32(); this.power_armor_power = f.ReadInt32(); this.power_armor_type = f.ReadInt32(); }
/** Read the mmove_t from the RandomAccessFile. */ public void read(BinaryReader f) { this.firstframe = f.ReadInt32(); this.lastframe = f.ReadInt32(); var len = f.ReadInt32(); this.frame = new mframe_t[len]; for (var n = 0; n < len; n++) { this.frame[n] = new(); this.frame[n].read(f); } this.endfunc = (EntThinkAdapter)f.ReadAdapter(); }
public gitem_t( string classname, EntInteractAdapter pickup, ItemUseAdapter use, ItemDropAdapter drop, EntThinkAdapter weaponthink, string pickup_sound, string world_model, int world_model_flags, string view_model, string icon, string pickup_name, int count_width, int quantity, string ammo, int flags, int weapmodel, gitem_armor_t info, int tag, string precaches ) { this.classname = classname; this.pickup = pickup; this.use = use; this.drop = drop; this.weaponthink = weaponthink; this.pickup_sound = pickup_sound; this.world_model = world_model; this.world_model_flags = world_model_flags; this.view_model = view_model; this.icon = icon; this.pickup_name = pickup_name; this.count_width = count_width; this.quantity = quantity; this.ammo = ammo; this.flags = flags; this.weapmodel = weapmodel; this.info = info; this.tag = tag; this.precaches = precaches; this.index = gitem_t.id++; }
public void read(BinaryReader f) { this.ai = (AIAdapter)f.ReadAdapter(); this.dist = f.ReadSingle(); this.think = (EntThinkAdapter)f.ReadAdapter(); }
public mframe_t(AIAdapter ai, float dist, EntThinkAdapter think) { this.ai = ai; this.dist = dist; this.think = think; }
public gitem_t(string classname, EntInteractAdapter pickup, ItemUseAdapter use, ItemDropAdapter drop, EntThinkAdapter weaponthink) { }
public spawn_t(string name, EntThinkAdapter spawn) { this.name = name; this.spawn = spawn; }