public void RefeshEntityProperties( Mob ownerMob, IEnvironmentEntity entity) { this.position_x = entity.Position.x; this.position_y = entity.Position.y; this.position_z = entity.Position.z; this.faction = entity.Faction; this.energy = entity.Energy; this.health = entity.Health; this.distance = Point2d.Distance(ownerMob.Position, entity.Position); }
public EntityProp( Mob ownerMob, IEnvironmentEntity entity) { this.target_object_id = entity.ID; RefeshEntityProperties(ownerMob, entity); this.propStatus = EntityProp.ePropStatus.unacknowledged; this.propStatusTurnCount = 0; this.salience = 0.0f; this.visibilityFlags = new TypedFlags <EntityProp.ePropVisibilityFlags>(); }